[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

48 / 54

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

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

AError

B100

CGarbage value

D100100

Answer: Option (Login/Signup)

Show Explanation

Here, the only thing that's getting executed is line no. 5, so 100 gets executed.

Line no. 4 is basically of no is use. You may write any number you want, but it's practically of no use, it's still going to print 100.

Asked In :: TCS

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

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here