A possible output of the following program fragment for{i = getchar{};; i = get

  • 0 replies
  • 609 views
*

Offline mechanic

  • *****
  • 2566
    • View Profile
    • Engineering Forum
Question: A possible output of the following program fragment for{i = getchar{};; i = getchar{}}
if{i == 'x'} break;
else putchar{i}: is


Options are:

A. mi
B mix
C mixx
D none of the above

Correct answer is:

A. mi