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
Is there any demerits of using pointer?
Explain what is the general form of a c program?
Define Spanning-Tree Protocol (STP)
What is c mainly used for?
a c code by using memory allocation for add ,multiply of sprase matrixes
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is the symbol indicated the c-preprocessor?
What is a wrapper function in c?
What is cohesion in c?
What is the difference between null pointer and wild pointer?
What is calloc in c?
How can I call fortran?
How can I do graphics in c?
What is maximum size of array in c?
What is an operator?