#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
Write the syntax and purpose of a switch statement in C.
Do variables need to be initialized?
What is a structure in c language. how to initialise a structure in c?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What language is c written?
What is the difference between near, far and huge pointers?
Why is c faster?
What is an example of structure?
In a byte, what is the maximum decimal number that you can accommodate?
How many identifiers are there in c?
Can you think of a logic behind the game minesweeper.
How can I implement a delay, or time a users response, with sub-second resolution?
What is nested structure with example?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Are there any problems with performing mathematical operations on different variable types?