What is the output for the following code??(C Language) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the output for the following code??(C Language)

#include<conio.h> #include<stdio.h> int i; void fun() { printf("Hi"); } void main() { while(i) { fun(); main(); } printf("Hello\n"); }

21st Jan 2018, 12:47 PM
Ricky Robert
2 Answers
21st Jan 2018, 2:02 PM
Lord Krishna
Lord Krishna - avatar
+ 3
i is not initialized
21st Jan 2018, 12:55 PM
Otumian Empire
Otumian Empire - avatar