: need help. : : cosider the following code: : : int a=1, b=2, c=3; : a +=b += c +=7; : : write an equivalent statement that is fully parenthesized. : what are the values of variables a,b,c? : write a test program to check answers. :
On my calculations c = 10, b = b + c = 12, a = a+b = 13.
Comments
:
: cosider the following code:
:
: int a=1, b=2, c=3;
: a +=b += c +=7;
:
: write an equivalent statement that is fully parenthesized.
: what are the values of variables a,b,c?
: write a test program to check answers.
:
On my calculations c = 10, b = b + c = 12, a = a+b = 13.