Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

consider the arithmetic expressions: int a = 7; int b = 19; a = a + b; …

Question

consider the arithmetic expressions: int a = 7; int b = 19; a = a + b; b -= (a + 3); which of the following statements are true? a = 26 and b = 10 a = 26 and b = -10 a = 33 and b = -10

Explanation:

Step1: Calculate new a value

$a = 7 + 19 = 26$

Step2: Calculate new b value

$b = 19 - (26 + 3) = 19 - 29 = -10$

Answer:

a = 26 and b = -10