[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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?

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 :: Global Edge

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here