C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
39 / 90
What will be output of the following "c" code?
#include<stdio.h>
void main( )
{
int i;
printf("%d", scanf("%d", &i));
}
If input of is given by keyboard is 10.
#include<stdio.h>
void main( )
{
int i;
printf("%d", scanf("%d", &i));
}
If input of is given by keyboard is 10.
A10
B1
CCompilation Error
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
Here, no. of values that are scanned is 1, and we know that printf() function returns the no. of characters as argument. Hence, output will be 1.
Read Full Answer
Report Error
Please Login First Click Here