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

Suppose the exchange rate between u.s. dollars and swiss francs is sf 1.41 = $1.00, and the exchange rate between the u.s. dollar and the euro is $1.00 = 0.64 e
What process uses a body cell to create a new organism?
What effect does an unbalanced force have on an object?
2. What is the mode of the data set? 27,35,57,36,44,57,33,34,66,30,33,42,57,23,35 A. 35 B. 33 C. 42 D. 57
Which word correctly completes this sentence? My neighbor asked my brother and ________ to buy bread for her.
Pleasae help and dont answer for points
Advances in technology have reduced the cost of manufacturing MP3 players. If demand does not change, A. more MP3 players will be sold at a higher price. B. fe
What is dimension of a 1 cubic foot carton in yards?
are AC and BE congruent explain
In April of 2013 a major terrorist attack killed 3 people and injured over 250 more when two bombs exploded at which famous American event?