C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
1 / 90
What is the output of the following C Program?
#include<stdio.h>
void main()
{
int i;
printf("%d",scanf("%d",&i)); // value 20 is given as input here
}
#include<stdio.h>
void main()
{
int i;
printf("%d",scanf("%d",&i)); // value 20 is given as input here
}
A0
B20
CCompiler Error
D1
ENone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
The printf() function always returns the actual character count. When 20 is scanned as an input, no. of character(s) which is read is equal to 1. So, 1 is the output.
Read Full Answer
Report Error
Please Login First Click Here