Sail E0 Webinar
Question
The output of the code below is?

    void main()

    {

        int i = 0, k;

        if (i == 0)

            goto label;

            for (k = 0;k < 3; k++)

            {

                printf("hi\n");

                label: k = printf("%03d", i);

            }

    }

Options:
A .  0
B .  hi hi hi 0 0 0
C .  0 hi hi hi 0 0 0
D .  0 0 0
Answer: Option A


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