The Following statements for {i = 3; < 15; i += 3}

  • 0 replies
  • 279 views
*

Offline mechanic

  • *****
  • 2565
    • View Profile
    • Engineering Forum
The Following statements for {i = 3; < 15; i += 3}
« on: March 15, 2018, 11:38:00 AM »
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