Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int k = 0, L = 0;
    Level1: while (k < 3)
    {
    k++;
    while (L < 15)
    {
    printf("Hey...\n");
    goto Level1;
    }
    }
    }
    1. Hey...
    2. Hey...
      Hey...
    3. Hey...
      Hey...
      Hey...
    4. Compilation Error
    5. None of these
Correct Option: C

Hey...
Hey...
Hey...



Your comments will be displayed only after manual approval.