#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


Please Help Members By Posting Answers For Below Questions

What is the use of getch ()?

831


What is a newline escape sequence?

846


Explain what are binary trees?

822


What is the difference between NULL and NUL?

997


What are types of structure?

820


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1935


What is the use of linkage in c language?

816


What is table lookup in c?

833


What is static memory allocation? Explain

813


develop algorithms to add polynomials (i) in one variable

1932


What is the use of #include in c?

803


What is the general form of a C program?

779


What is volatile keyword in c?

772


Explain how can you check to see whether a symbol is defined?

863


c program for searching a student details among 10 student details

1865