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 output redirection?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
How do I copy files?
Why is c fast?
List the difference between a "copy constructor" and a "assignment operator"?
What is %lu in c?
The statement, int(*x[]) () what does in indicate?
What is hashing in c?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Which header file is used for clrscr?
What is function what are the types of function?
Is a pointer a kind of array?
Is it possible to initialize a variable at the time it was declared?