C - Control Statements - Discussion

You Are Here :: Home > C > Control Statements - Discussion

 



Q.

What is the output of this C code?

#include
void main()
{
double k = 0;
for (k = 0.0; k < 3.0; k++)
printf("Hello");
}

A. Run time error B. Hello is printed thrice
C. Hello is printed twice D. Hello is printed infinitely

Answer: Option B
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion