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
Explain the difference between ++u and u++?
What is advantage of pointer in c?
If fflush wont work, what can I use to flush input?
Explain the red-black trees?
How can I make sure that my program is the only one accessing a file?
Why shouldn’t I start variable names with underscores?
Explain argument and its types.
Are there namespaces in c?
What is this pointer in c plus plus?
Can we increase size of array in c?
Write a program for finding factorial of a number.
What is #include stdio h and #include conio h?
Is malloc memset faster than calloc?
What is the process to generate random numbers in c programming language?
What is the mean of function?