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?
What is the difference between array and pointer in c?
How do you define structure?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
largest Of three Number using without if condition?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What are the usage of pointer in c?
How do you define a string?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What are identifiers in c?
Write a progarm to find the length of string using switch case?
What is time null in c?
What is keyword with example?
Why string is used in c?