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

Online mechanic

  • Engineer
  • Hero Engineer
  • *****
  • Posts: 2647
    • View Profile
    • Engineering Forum
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 »