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
Find MAXIMUM of three distinct integers using a single C statement
Can a pointer be static?
Explain the binary height balanced tree?
Explain what is the stack?
Explain what is the general form of a c program?
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
What is calloc malloc realloc in c?
What is array in c with example?
what do you mean by enumeration constant?
What are the 4 types of unions?
What is #include stdlib h?
Explain what are bus errors, memory faults, and core dumps?
What is the use of static variable in c?
Distinguish between actual and formal arguments.
What is table lookup in c?