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

  • 0 replies
  • 1357 views
*

Offline mechanic

  • Engineer
  • *****
  • 3420
  • Gender: Male
  • Engineer
    • 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