Sail E0 Webinar
Question
What is the output of this C code?

    int main()

    {

        printf("%d ", 1);

        goto l1;

        printf("%d ", 2);

    }

    void foo()

    {

        l1: printf("3 ", 3);

    }

Options:
A .  1 2 3
B .  1 3
C .  1 3 2
D .  Compile time error
Answer: Option D


none



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Latest Videos

Latest Test Papers