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 is difference between ANSI structure and C99 Structure?
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?
What is character set?
Can we access RAM? How? Whats the range of access? Similarly What are other hardware we can access?
What is scope of variable in c?
Write a program to print distinct words in an input along with their count in input in decreasing order of their count
How does memset() work in C?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Is fortran faster than c?
What are .h files and what should I put in them?
how can we print hellow world programme without using semicolon