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

What is the most efficient way to count the number of bits which are set in an integer?

595


What does double pointer mean in c?

584


List the variables are used for writing doubly linked list program.

1626


What is page thrashing?

655


What are categories used for in c?

573






Explain how are 16- and 32-bit numbers stored?

787


what does static variable mean?

657


How many parameters should a function have?

670


What does. int *x[](); means ?

640


what is the different bitween abap and abap-hr?

1745


can any one provide me the notes of data structure for ignou cs-62 paper

1708


Can true be a variable name in c?

561


What is a pointer and how it is initialized?

612


What are the advantages of union?

631


What is the use of a conditional inclusion statement in C?

606