Guru_Kid
February 8th, 2009, 10:41 PM
I'm not sure if this is the right forum but here it goes xD
Could someone help solve these Arithmetic Operators? I'm not certain on the values I got.
Given: int x = 5; What is the value of x after the execution of this expression? x = x + 4
Given: int x = 5; What is the value of x after the execution of this expression? x -= 2;
Evaluate: 7 + 6 % 4
Evaluate: 7 + (6 % 34)
Could someone help solve these Arithmetic Operators? I'm not certain on the values I got.
Given: int x = 5; What is the value of x after the execution of this expression? x = x + 4
Given: int x = 5; What is the value of x after the execution of this expression? x -= 2;
Evaluate: 7 + 6 % 4
Evaluate: 7 + (6 % 34)