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
you are right mr.Satya but i found my self unable to
understand that for the first time scanf returns the no of
successful matches but how for the second time it returns
the value of 'b'.while a function should return the
same 'r' value every time.
Answer Posted / gulam sarwar chuwdhury
The output :2,the value of b
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is the purpose of void in c?
Explain what is the benefit of using #define to declare a constant?
What is wild pointer in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Can math operations be performed on a void pointer?
How can I ensure that integer arithmetic doesnt overflow?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What are runtime error?
What does d mean?
Why do we use c for the speed of light?
Why do we use stdio h and conio h?
What are linked lists in c?
What does 3 mean in texting?
What is getche() function?
How are Structure passing and returning implemented by the complier?