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 the New and Malloc keyword.
What is identifiers in c with examples?
Are local variables initialized to zero by default in c?
Explain main function in c?
Explain goto?
What is string function c?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
Can you write a programmer for FACTORIAL using recursion?
Explain how can you tell whether a program was compiled using c versus c++?
What are types of functions?
Who invented b language?
What are the 3 types of structures?
List some applications of c programming language?
what is the different bitween abap and abap-hr?
Why do we use int main instead of void main in c?