what will be the output of" printf("%d%d",scanf("%d%
d",&a&b));"
Answers were Sorted based on User's Feedback
Answer / satya
main()
{
int a,b;
printf("%d,%d",scanf("%d%d",&a,&b));
}
=> do u mean above program's output...
=>output will be:2,whatever you enter value for b.
=>because scanf is a library fn which will return how many
arguements it processes, and second value
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / pusuluri leela prasad
first it will return no of values that scanf can return and
second it will return first value of the scanf statement
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / praveen
No, The output will not be 2......The exact output is "It
will take the garbage value"
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / bhavani
=>output will be:2,whatever you enter value for a.
=>because scanf is a library fn which will return how many
arguements it processes, and first value
| Is This Answer Correct ? | 0 Yes | 2 No |
What does nil mean in c?
How can I find leaf node with smallest level in a binary tree?
what is the c.
When do we get logical errors?
Find greatest of two numbers using macro
difference between Low, Middle, High Level languages in c ?
the operator for exponencation is a.** b.^ c.% d.not available
why wipro wase
What is static identifier?
Write down the program to sort the array.
what is the use of c program?
4 Answers Synergy, Web Synergies,
What library is sizeof in c?