int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?

Answer Posted / poornima

Actually, Stack follows Last In First Out(LIFO) style.No
doubt in tht.
In code, there is only two format specifier(ie., 2 %d) tht
will corresponds to first two variables.
Elements are pushed from right to left fashion in variable
declaration part.
In stack, c is bottom-most element & a is top-most element.
so,by code a is popped first then b.so, it will print 1,2.

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Find MAXIMUM of three distinct integers using a single C statement

622


Can a pointer be static?

616


Explain the binary height balanced tree?

720


Explain what is the stack?

634


Explain what is the general form of a c program?

620






any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

632


What is calloc malloc realloc in c?

589


What is array in c with example?

610


what do you mean by enumeration constant?

594


What are the 4 types of unions?

603


What is #include stdlib h?

612


Explain what are bus errors, memory faults, and core dumps?

786


What is the use of static variable in c?

593


Distinguish between actual and formal arguments.

587


What is table lookup in c?

624