What is the value of x? int x = 3;
What is the value of x?
int x = 3;
x *= 2 + 1;
Show answerHide answer
Correct answer: (D) 9
Explanation
x *= (2 + 1) → x = 3 × 3 = 9.
Correct answer: (D) 9
Explanation
x *= (2 + 1) → x = 3 × 3 = 9.
This is question 131 of DSSSB TGT Computer Science Full Mock Test 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.