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 do you mean by c what are the main characteristics of c language?
What are the features of c languages?
what is compiler
What are the types of data types and explain?
is assignment operator is arithmatic or not
What should be keep precautions while using the recursion method?
What is the value of h?
What is fflush() function?
EXPLAIN #INCLUDE<STDIO.H> EXPLAIN #INCLUDE<CONIO.H>
What is zero based addressing?
How are 16- and 32-bit numbers stored?
void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?