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 c value paradox explain?
I came across some code that puts a (void) cast before each call to printf. Why?
What is #define used for in c?
What is memmove?
What is the use of bit field?
What is Full Form of C and Why We use C
What does #pragma once mean?
How to declare a variable?
Explain the use of fflush() function?
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
What is structure of c program?
can we write a c program with out using main