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 |
Is c dynamically typed?
what is the difference between structural,object based,object orientd programming languages?
Are the variables argc and argv are local to main?
Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What is a header file?
Write a program to print prime nums from 1-20 using c programing?
write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?
What are identifiers and keywords in c?
a=5 a=a++/++a
What is scope of variable in c?
How can you avoid including a header more than once?