#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
given post order,in order construct the corresponding binary tree
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is || operator and how does it function in a program?
What are the two types of structure?
What is #define in c?
Why can't I perform arithmetic on a void* pointer?
Describe the order of precedence with regards to operators in C.
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Is c still relevant?
What are enums in c?
What does sizeof function do?
What are the types of i/o functions?
what is ur strangth & weekness
What is static and volatile in c?
What is the size of enum in bytes?