Vidyalelo
C Programming · Q75

Control Structures

Programming · C Programming · question 75

Q75

What will be the output of the following 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
Answer
C.
Hello is printed twice
D.
Hello is printed infinitely

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board