C Programming :: Declarations and Initializations - Discussion
Home > C Programming > Declarations and Initializations > MCQs Questions Discussion
11 / 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);
}
#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 ::
STEP-BY-STEP
Here, j=6, k=6
So, x=j*k
or, x=6*6;
x=36
Hence, 36 is the output.
Read Full Answer
Report Error
Please Login First Click Here