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
Is a house a shell structure?
Explain the difference between structs and unions in c?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Is it valid to address one element beyond the end of an array?
Explain the use of function toupper() with and example code?
Why is C language being considered a middle level language?
What is the size of empty structure in c?
How can I prevent another program from modifying part of a file that I am modifying?
How do you sort filenames in a directory?
Why we write conio h in c?
what type of questions arrive in interview over c programming?
Explain what is the difference between a free-standing and a hosted environment?
how to capitalise first letter of each word in a given string?
What does char * * argv mean in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a