#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 #ifdef ? What is its application?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
How can I remove the trailing spaces from a string?
Explain the priority queues?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
When should a far pointer be used?
code for quick sort?
Which programming language is best for getting job 2020?
What is sorting in c plus plus?
Explain how can type-insensitive macros be created?
Explain what is the benefit of using const for declaring constants?
What is pre-emptive data structure and explain it with example?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What are the differences between Structures and Arrays?