#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 is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

863


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4823


What are structural members?

773


Which is better oop or procedural?

809


What are identifiers in c?

876


What are the different types of endless loops?

822


which is an algorithm for sorting in a growing Lexicographic order

1580


Difference between linking and loading?

884


What is the use of pointers in C?

830


Define macros.

1019


What is a pointer on a pointer in c programming language?

850


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1227


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2067


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

822


If errno contains a nonzero number, is there an error?

1045