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 pointer & why it is used?
What does double pointer mean in c?
Is c programming hard?
Explain the use of bit fieild.
Is null always equal to 0(zero)?
How many data structures are there in c?
Write a program to reverse a given number in c language?
What does nil mean in c?
What is sizeof array?
How can you allocate arrays or structures bigger than 64K?
What are near, far and huge pointers?
Difference between strcpy() and memcpy() function?
What is 'bus error'?
Why isn't it being handled properly?
What are the differences between new and malloc in C?