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

Answer Posted / vikas

output is 5 4 3 2 1

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When was c language developed?

706


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

640


What does struct node * mean?

605


What is ponter?

777


Can you add pointers together? Why would you?

651






Can we declare variables anywhere in c?

584


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

693


Does c have class?

616


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1853


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1934


What is the best organizational structure?

646


Define VARIABLE?

692


What does 3 mean in texting?

623


How can I make it pause before closing the program output window?

585


How can you invoke another program from within a C program?

620