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

    void main()

    {

        int i = 0;

        for (i = 0;i < 5; i++)

            if (i < 4)

            {

                printf("Hello");

                break;

            }

    }

Options:
A .  Hello is printed 5 times
B .  Hello is printed 4 times
C .  Hello
D .  Hello is printed 3 times
Answer: Option C


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