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 a built-in function in C that can be used for sorting data?
What is extern c used for?
In a switch statement, what will happen if a break statement is omitted?
What is the best organizational structure?
What does the && operator do in a program code?
What is meant by keywords in c?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
Can we declare a function inside a function in c?
What does 1f stand for?
Why structure is used in c?
What is the use of the function in c?
Where is volatile variable stored?
What are the parts of c program?
How can you invoke another program from within a C program?
What is a MAC Address?