jbrad1322 jbrad1322
  • 04-07-2019
  • Computers and Technology
contestada

What is the value of x after the following statements execute? int x, y, z; y 12; z 3; X= (y*(z+y-10); A. 36 B. 144 C.60 D. None of these

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

60

Explanation:

According to the operator precedence, the bracket comes in the top. So, the program solve expression in the bracket first.

In the code, the value of Y is 12  and z is 3

substitute the value in the formula.

X = (12*(3 + 12 - 10)).

So, the program calculate the value (3 + 12 - 10) first which gives 5.

After that program evaluate (12 * 5) which gives 60.

Therefore, the answer is 60.

Answer Link

Otras preguntas

If you maintain a good driving record, your car insurance company may reward you with _____. A. removal of license restrictions B. collision forgiveness C. di
2. El cociente de 15 y un número.
What is the description of location
What’s the least important principle of art?
Consider the line y = 5/2x. What is the slope of a line perpendicular to this line? What is the slope of a line parallel to this line?
Write as a trinomial
My phone screen was damaged and broken, but it's still working. But the problem is my camera got a crack too, if I replaced this screen with a new screen, will
Why is the pressure 101.3kPa significant
5627 to the nearest thousand
Procter & Gamble reported the following information for its fiscal year end: On net sales of $57.690 billion, the company earned net income after taxes of $