adplus-dvertising
frame-decoration

Question

Output of the following program fragment (in C) is
for (i = 1; i < 5; i ++);
if (i = = 3) continue;
else printf ("%d",i);

a.

1 2 3 4 5

b.

1 2 4

c.

2 4 5

d.

none of these

Posted under C Programming

Answer: (b).1 2 4

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Output of the following program fragment (in C) is