[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

40 / 54

Find the output for the following C program.

#include<stdio.h>
void main
 {
int x,j,k;
 j=k=6;x=2;
 x=j*k;
 printf("%d", x);
}

A2

B36

C6

DNone of the above

Answer: Option (Login/Signup)

Show Explanation

So, x=j*k

or, x=6*6;

x=36

Hence, 36 is the output.

Asked In :: Cisco

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here