Vidyalelo
C Programming · Q105

Control Structures

Programming · C Programming · question 105

Q105

What will be the output of the following C code? #include void main() int i = 0, k; if (i == 0) goto label; for (k = 0;k < 3; k++) printf("hi "); label: k = printf("%03d", i);

A.
0
B.
hi hi hi 000
C.
0 hi hi hi 000
D.
000
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board