C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
75 / 90
What is the output of the following 'C' program ?
#include<stdio.h>
main()
{
scanf("%d");
printf();
}
which of the following is correct?
#include<stdio.h>
main()
{
scanf("%d");
printf();
}
which of the following is correct?
Acompilation error
BRun time error
CNo output
Ddepends on the compiler
Answer: Option (Login/Signup)
Show Explanation
The return type of main() is not mentioned. Also, in the scanf() function, for the format specifier %d, there is no matching int argument. Moreover, printf() contains no argument.
Asked In ::
STEP-BY-STEP
It will result to compilation error.
The return type of main() is not mentioned. Also, in the scanf() function, for the format specifier %d, there is no matching int argument. Moreover, printf() contains no argument.
Read Full Answer
Report Error
Please Login First Click Here