#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 / agita
in response to the previous answer...
there is no storage class specification for i..so by default
it
is auto..if an auto variable is not initiallized it would
give a garbage value..then how come while(0)....?
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain how can I manipulate strings of multibyte characters?
Explain the use of 'auto' keyword
What is keyword with example?
what is different between auto and local static? why should we use local static?
Explain heap and queue.
How can I send mail from within a c program?
What are predefined functions in c?
What is cohesion and coupling in c?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Are the expressions * ptr ++ and ++ * ptr same?
Why static variable is used in c?
What is the right type to use for boolean values in c? Is there a standard type?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is #line used for?