#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
How do you define CONSTANT in C?
Why c is known as a mother language?
Write the control statements in C language
explain what are actual arguments?
What is the difference between test design and test case design?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
How to set file pointer to beginning c?
How do I round numbers?
What are derived data types in c?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What is spaghetti programming?
What is infinite loop?
Is it fine to write void main () or main () in c?
Which is more efficient, a switch statement or an if else chain?
What are c header files?