What is the output of below code?
main() { static int a=5; printf("%3d",a--); if(a) main(); }



What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main..

Answer / vikas

output is 5 4 3 2 1

Is This Answer Correct ?    11 Yes 2 No

Post New Answer

More C Interview Questions

the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

0 Answers  


How does sizeof know array size?

0 Answers  


In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a

2 Answers   BitWise,


Explain the properties of union. What is the size of a union variable

0 Answers  


What is the difference between c and python?

0 Answers  


Write a function in c to find the area of a triangle whose length of three sides is given.

2 Answers  


write a C code To reverse a linked list

2 Answers   Motorola, Wipro,


Difference between Function to pointer and pointer to function

0 Answers  


What is the purpose of Scanf Print, getchar, putchar, function?

3 Answers  


Give differences between - new and malloc() , delete and free() ?

0 Answers   Genpact,


Dear Sir, we are required the bubble sorting programs Regs Prem

1 Answers  


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

0 Answers  


Categories