#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
Is main is user defined function?
What is difference between %d and %i in c?
How does pointer work in c?
What is the use of clrscr?
Can you add pointers together? Why would you?
Which function in C can be used to append a string to another string?
Explain what is dynamic data structure?
Is it better to bitshift a value than to multiply by 2?
What are shell structures used for?
Write a program for finding factorial of a number.
Can you return null in c?
Explain how can I right-justify a string?
Differentiate between ordinary variable and pointer in c.
What are data types in c language?
Where does the name "C" come from, anyway?