#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 / who cares
I am not an expert but you can try one thing that I did.
Remove the while loop and put the follow
if (i)
printf ( "hi\n" );
The result is that printf statement never gets any print
out! My guess would be because the value of 'i' is NOT
defined so, that while loop doesn't get assess at all! So,
the result is only "hello"
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Explain Function Pointer?
Why pointers are used?
What are predefined functions in c?
What does 1f stand for?
Find MAXIMUM of three distinct integers using a single C statement
Explain what is a 'locale'?
What are valid operations on pointers?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Write programs for String Reversal & Palindrome check
Difference between pass by reference and pass by value?
How do you use a 'Local Block'?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Write a c program to demonstrate character and string constants?
What is the Purpose of 'extern' keyword in a function declaration?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?