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 |
How to set file pointer to beginning c?
What is masking?
What happens if header file is included twice?
Can you add pointers together? Why would you?
what is recursion in C
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
How do shell structures work?
#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}
How do you define CONSTANT in C?
which types of data structure will i use to convert infix to post fix???
How do I convert a string to all upper or lower case?
write a c program to find the roots of a quadratic equation ax2 + bx + c = 0
11 Answers CSC, St Marys, TATA,