what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}
Answer Posted / carol
scanf will return the number of arguments that are scanned
successfully from keyboard.So first it will get two values
from the user and return two . So the printf statement
prints 2 for the first %d and since there is no specific
value for second %d it will print garbage value.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Where are c variables stored in memory?
What functions are in conio h?
Define the scope of static variables.
What is volatile variable in c?
what does static variable mean?
In c programming language, how many parameters can be passed to a function ?
Why doesnt the call scanf work?
Explain how do you list files in a directory?
i got 75% in all semester am i eligible for your company
Explain the term printf() and scanf() used in c language?
Is flag a keyword in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is fflush() function?
What is a function in c?
What is c system32 taskhostw exe?