int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?
Answer Posted / jaya prakash
1,2
because arguments of functions stored in stock
in stock stored as
"%d,%d"
a
b
c
in printf fn,
args popped out from stack
first "%d,%d" is popped
it find two int involved by %d in the control string
so two more args popped out
a,b
after popping the addr's then the values in that location
printed.(1,2)
Is This Answer Correct ? | 28 Yes | 3 No |
Post New Answer View All Answers
What is the use of pragma in embedded c?
Can you subtract pointers from each other? Why would you?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What is #line?
Which is best linux os?
C program to find all possible outcomes of a dice?
How can I write a function analogous to scanf?
Difference between strcpy() and memcpy() function?
Differentiate between static and dynamic modeling.
How is a structure member accessed?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is %lu in c?
How can you invoke another program from within a C program?
What does dm mean sexually?
Which driver is a pure java driver