LoginSignup
1
0

More than 5 years have passed since last update.

複数条件のfor文

Last updated at Posted at 2014-02-19

C言語のfor文は複数条件で指定できる

条件式が複数の場合
- ||でつなぐ → or条件 => カンマ区切りで指定すると、カンマの左側の条件は無視されるので注意
- &&でつなぐ → and条件

再初期化式でカンマ区切りで指定されている場合は、それぞれの条件が適用される

1
0
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0