Author Topic: A possible output of the following program fragment for{i = getchar{};; i = get  (Read 677 times)

Offline mechanic

Advertisement
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

Engineering Forum