Given the following code snippet, what is the value of the variable c?
Given the following code snippet, what is the value of the variable c?
int a, b, c;
a = b = c = 15;
c = c + 10;
Show answerHide answer
Correct answer: (C) 25
Explanation
All three variables are set to 15 by chained assignment, then c = 15 + 10 = 25.