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 are the application of c?
How do you use a 'Local Block'?
Can two or more operators such as and be combined in a single line of program code?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is calloc()?
What is the difference between typedef struct and struct?
Is c easier than java?
How can I change their mode to binary?
Where can I get an ansi-compatible lint?
Can a pointer be static?
Explain the advantages of using macro in c language?
What are types of preprocessor in c?
Explain what math functions are available for integers? For floating point?
Are comments included during the compilation stage and placed in the EXE file as well?
Write a function that will take in a phone number and output all possible alphabetical combinations