main()
{
static int ivar=5;
printf("%d",ivar--);
if(ivar)
main();
}

Answers were Sorted based on User's Feedback



main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / amit

In GCC compiler 54321 is the correct answer.

Is This Answer Correct ?    29 Yes 0 No

main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / suresh kallam

4 3 2 1 0

Is This Answer Correct ?    0 Yes 3 No

main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }..

Answer / sindhujah

4

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More C Interview Questions

What is use of bit field?

0 Answers  


How to find the digits truncation when assigning the interger variable to the character variables. like int i=500; char x = i : here we have truncation. how to find this. another ex: i =100; char x=i. here we do not have truncation.

1 Answers   HCL,


Why do we write return 0 in c?

0 Answers  


What is 1f in c?

0 Answers  


What is the acronym for ansi?

0 Answers  






main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }

1 Answers   Vector, Vector India,


What is table lookup in c?

0 Answers  


What are the disadvantages of external storage class?

0 Answers  


Identify the operators that is not used with pointer a. && b. # c. * d. >>

2 Answers  


write a program in c language that uses function to locate and return the smallest and largest integers in an array,number and their position in the array. it should also find and return the range of the numbers , that is , the difference between the largest number and the smallest.

1 Answers  


What does s c mean on snapchat?

0 Answers  


f(x,y,z) { y = y+1; z = z+x; } main() { int a,b; a = 2 b = 2; f(a+b,a,a); print a; } what is the value of 'a' printed

5 Answers  


Categories