#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 / tatukula
in above program variable 'i' is declared as global integer ..so i=0...thats why while() condition gets failed and
prints 'hello'
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is assert and when would I use it?
What is methods in c?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What does & mean in scanf?
What is the process to create increment and decrement stamen in c?
write a programming in c to find the sum of all elements in an array through function.
What are the different types of endless loops?
What is function prototype in c with example?
What is a function simple definition?
Sir i need notes for structure,functions,pointers in c language can you help me please
What are conditional operators in C?
How do you determine the length of a string value that was stored in a variable?
What is sizeof c?
What are the two forms of #include directive?
List the variables are used for writing doubly linked list program.