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
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
How do I copy files?
What are data types in c language?
What is a memory leak? How to avoid it?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is include directive in c?
Why array is used in c?
What are extern variables in c?
What is the explanation for cyclic nature of data types in c?
Explain the array representation of a binary tree in C.
Explain how do you declare an array that will hold more than 64kb of data?
i have a written test for microland please give me test pattern
What is pointer in c?
How do you define a function?
What is the difference between exit() and _exit() function in c?