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 are the languages are portable and platform independent?Why they are like that?
write a c program to find the probability of random numbers between 1-1000
Write a program to reverse a given number in c?
What is the right type to use for boolean values in c?
how to go with this?
what is the use of keyword volatile??
int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
What is C language Terminator?
why we use "include" word before calling the header file. is there any special name for that include??????
what is use of loop?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?