Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int n = 0, L;
    if (n == 0)
    goto Label;
    for (L = 0; L < 3; L++)
    {
    printf("Hey");
    Label: L = printf("%03d", n);
    }
    }
    1. HeyHeyHey
    2. 000 HeyHeyHey
    3. HeyHeyHey 000
    4. 000
    5. None of these
Correct Option: D

000



Your comments will be displayed only after manual approval.