Sail E0 Webinar
Question
What is output of code given below?

    int main()

    {

        int i = 0, j = 0;

       while (i < 2)

        {

            l1 : i++;

            while (j < 3)

            {

                printf("Loop\n");

                goto l1;

            }

        }

    }

Options:
A .  Loop Loop
B .  Compilation error
C .  Loop  Loop  Loop  Loop
D .  Infinite Loop
Answer: Option D


none



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers