C Programming :: Declarations and Initializations - Discussion
Home > C Programming > Declarations and Initializations > MCQs Questions Discussion
9 / 54
What is the output of the following code?
#include <stdio.h>
void main()
{
int a=0, b=0;
a = (b =75)+9;
printf("\n%d, %d ",a,b);
}
#include <stdio.h>
void main()
{
int a=0, b=0;
a = (b =75)+9;
printf("\n%d, %d ",a,b);
}
A75, 9
B75, 84
C84, 75
DNone of these Options
Answer: Option (Login/Signup)
Show Explanation
a = (b =75) 9;......b value is assigned to 75 so a value will become 75+9= 84.
final value will become a=84 and b=75
Asked In ::
STEP-BY-STEP
Clearly, b is assigned the value 75.
Value of a will be, a=75+9=84.
Hence, correct option is C.
Read Full Answer
Report Error
Please Login First Click Here
STEP-BY-STEP
a = (b =75) 9;......b value is assigned to 75 so a value will become 75+9= 84.
final value will become a=84 and b=75
Read Full Answer
Report Error
Please Login First Click Here