[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

35 / 54

What would be the output of the following C program ?

#include<stdio.h>
void main() {
int = 12345;
float x = 145.678;
printf ("%3d, %5d, %8d", i,i,i,);
} 

A123 123 123

B123,451,234,512,346

C12345

D123

Answer: Option (Login/Signup)

Show Explanation

assume if int i=12345;

and all syntax is right then the answer will be 

12345,   12345,      12345

(check in GDB if you have any doubts)

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here