#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 / agita

in response to the previous answer...

there is no storage class specification for i..so by default
it
is auto..if an auto variable is not initiallized it would
give a garbage value..then how come while(0)....?

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what happens if you free a pointer twice?

619


Explain how do you convert strings to numbers in c?

598


What is context in c?

543


What are shell structures used for?

604


What are type modifiers in c?

627






What does the message "automatic aggregate intialization is an ansi feature" mean?

698


What is a program flowchart?

609


What is dynamic dispatch in c++?

563


What is the advantage of a random access file?

644


how do you programme Carrier Sense Multiple Access

1525


Is there any data type in c with variable size?

637


What is variable declaration and definition in c?

507


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1719


Explain the difference between #include "..." And #include <...> In c?

635


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1748