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


Please Help Members By Posting Answers For Below Questions

Is a house a shell structure?

690


Explain the difference between structs and unions in c?

572


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

632


Is it valid to address one element beyond the end of an array?

670


Explain the use of function toupper() with and example code?

651






Why is C language being considered a middle level language?

652


What is the size of empty structure in c?

589


How can I prevent another program from modifying part of a file that I am modifying?

606


How do you sort filenames in a directory?

708


Why we write conio h in c?

561


what type of questions arrive in interview over c programming?

1551


Explain what is the difference between a free-standing and a hosted environment?

632


how to capitalise first letter of each word in a given string?

1428


What does char * * argv mean in c?

621


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

1449