[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 :: Declarations and Initializations - Discussion

Home > C Programming > Declarations and Initializations > MCQs Questions Discussion

27 / 54

What will be the output of the following "C" code?

#include<stdio.h>
void main()
{
100;
printf("%d",100);
}

ACompilation Error

B100

C1

DNone of these

Answer: Option (Login/Signup)

Show Explanation

100;  ...........there was no use of this 100. Its only to confuse the students.

printf("%d",100);  ...... its as simple as to print hello world.  hence 100 is printed.

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here