#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 / parul_kul
As "int i" is not defined/declared inside any function, by
default it is declared as external variable not as auto.
Thats why, it takes the 0 as its default value.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why pointers are used in c?
Can we declare a function inside a function in c?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Is c language still used?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
What does int main () mean?
What is boolean in c?
Explain b+ tree?
What are examples of structures?
What is the use of define in c?
What is sizeof array?
Explain how do you declare an array that will hold more than 64kb of data?
Explain how do you override a defined macro?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???