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

Hai why 'c' is the middle language

4 Answers  


What is type qualifiers?

0 Answers  


What is encapsulation?

2 Answers  


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

0 Answers  


Which is better malloc or calloc?

0 Answers  






how to find your architecture is LittleEndian or BigEndian?

1 Answers  


Why do some versions of toupper act strangely if given an upper-case letter?

0 Answers  


how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *

3 Answers  


void main() { int *ptr; ptr = (int *) 0x400 ; printf("ptr=%d",ptr); } output?

1 Answers  


How can I ensure that integer arithmetic doesnt overflow?

0 Answers  


do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.

1 Answers  


What is keyword with example?

0 Answers  


Categories