#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 / parul_kul
As "int i" is not defined/declared inside any function, by
default it is declared as external variable not as auto.
Thats why, it takes the 0 as its default value.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is structure packing in c?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
Why is this loop always executing once?
Write a code to generate a series where the next element is the sum of last k terms.
what is the difference between 123 and 0123 in c?
Is r written in c?
What are the different types of control structures?
Explain what are multidimensional arrays?
What is selection sort in c?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What’s a signal? Explain what do I use signals for?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Which is the memory area not included in C program? give the reason
Explain how to reverse singly link list.