Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    printf("Interview");
    goto Level1;
    printf("Mania");
    }
    void fun()
    {
    Level1 : printf("Hello");
    }
    1. Mania
    2. Hello
    3. Compilation Error
    4. Runtime Error
    5. Interview
Correct Option: C

Compilation Error

main.c: In function ‘main’:
main.c:5:9: error: label ‘Level1’ used but not defined
goto Level1;



Your comments will be displayed only after manual approval.