Author Topic: The Following statements for {i = 3; < 15; i += 3}  (Read 340 times)

Offline mechanic

The Following statements for {i = 3; < 15; i += 3}
« on: March 15, 2018, 11:38:00 AM »
Advertisement
The Following statements for {i = 3; < 15; i += 3}
{ printf{"%d ", i};
++i;
}

will be result in the printing of:

(a) 3 6 9 12
(b) 3 6 9 12 15
(c) 3 7 11
(d) 3 7 11 15

Correct answer is:

(c) 3 7 11

Engineering Forum

The Following statements for {i = 3; < 15; i += 3}
« on: March 15, 2018, 11:38:00 AM »