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 c# a good language?
What is variables in c?
What is far pointer in c?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What is difference between array and pointer in c?
Is c object oriented?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Is it better to use a macro or a function?
How do c compilers work?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
How to establish connection with oracle database software from c language?
simple program of graphics and their output display
Why can arithmetic operations not be performed on void pointers?
please explain every phase in the "SDLC" in the dotnet.
Explain what is output redirection?