#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
What is the g value paradox?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What does %p mean?
What are the 5 types of organizational structures?
How can I access an I o board directly?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What are inbuilt functions in c?
What is a char c?
What is the difference between Printf(..) and sprint(...) ?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
If I have a char * variable pointing to the name of a function ..
Can i use “int” data type to store the value 32768? Why?
Explain that why C is procedural?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler