Multiple choice

Is it possible to write the following expression? for(expression 1a, expression 1b; expression 2; expression 3) { statement; }

  1. Yes

  2. No

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The comma operator allows multiple expressions in the initialization section of a for loop. The syntax 'for(expr1a, expr1b; expr2; expr3)' is valid C, where expr1a and expr1b are evaluated in sequence before the loop begins.