What will be the output of the following ‘C’ code? for (i = 1; i < 5; i++) if…

What will be the output of the following ‘C’ code?

for (i = 1; i < 5; i++)

if (i != 3)

printf ("%d", i);

  1. A.

    1245

  2. B.

    0000

  3. C.

    Error

  4. D.

    12345

Attempted by 180 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…