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("%lf", k);

   }

Options:
A .  2.000000
B .  4.000000
C .  3.000000
D .  Run time error
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