What will be the output of the following ‘C’ code? for (i = 1; i < 5; i++) if…
2025
What will be the output of the following ‘C’ code?
for (i = 1; i < 5; i++)
if (i != 3)
printf ("%d", i);
Answer: C. Error
- A.
1245
- B.
0000
- C.
Error
- D.
12345
Attempted by 473 students.
Show answer & explanation
Correct answer: C
Loading lesson…