Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    printf("Krishna ");
    goto Label;
    printf("Imroj ");
    }
    void fun()
    {
    Label: printf("Abhay ");
    }
    1. Krishna
    2. Imroj
    3. Abhay
    4. Compilation Error
    5. None of these
Correct Option: D

Compilation Error

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



Your comments will be displayed only after manual approval.