#include<stdio.h>
int fun();
int i;
int main()
{
while(i)
{
fun();
main();
}
printf("hello \n");
return 0;
}
int fun()
{
printf("hi");
}
answer is hello.how??wat is tat while(i) mean?
Answer Posted / parul_kul
As "int i" is not defined/declared inside any function, by
default it is declared as external variable not as auto.
Thats why, it takes the 0 as its default value.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of getch ()?
What is a newline escape sequence?
Explain what are binary trees?
What is the difference between NULL and NUL?
What are types of structure?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What is the use of linkage in c language?
What is table lookup in c?
What is static memory allocation? Explain
develop algorithms to add polynomials (i) in one variable
What is the use of #include in c?
What is the general form of a C program?
What is volatile keyword in c?
Explain how can you check to see whether a symbol is defined?
c program for searching a student details among 10 student details