Vidyalelo
C Programming · Q117

Control Structures

Programming · C Programming · question 117

Q117

What will be the output of the following C code? #include void main() char *str = ""; do printf("hello"); while (str);

A.
Nothing
B.
Run time error
C.
Varies
D.
Hello is printed infinite times
Answer

Answer: Option D

Solution

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