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

    void main()

    {

        double k = 0;

        for (k = 0.0; k < 3.0; k++)

            printf("Hello");

    }

Options:
A .  Run time error
B .  Hello is printed thrice
C .  Hello is printed twice
D .  Hello is printed infinitely
Answer: Option B


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