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
What is the most efficient way to count the number of bits which are set in an integer?
What does double pointer mean in c?
List the variables are used for writing doubly linked list program.
What is page thrashing?
What are categories used for in c?
Explain how are 16- and 32-bit numbers stored?
what does static variable mean?
How many parameters should a function have?
What does. int *x[](); means ?
what is the different bitween abap and abap-hr?
can any one provide me the notes of data structure for ignou cs-62 paper
Can true be a variable name in c?
What is a pointer and how it is initialized?
What are the advantages of union?
What is the use of a conditional inclusion statement in C?