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

How does Franklin prove that Mesmer’s patients are imagining the effect that Mesmer’s force has on them?
An immediate effect of the Scopes trial on American society was that
the sun is a star but the earth is a planet why​
what region do i live in if i live in Scarborough Canada
Suppose the student in (Figure 1) is 68kg, and the board being stood on has a 12kg mass. What is the reading on the left scale? What is the reading on the right
Which one of the following tissues is illustrated by the sketch? A. xylem C. Collenchyma B. Parenchyma D. Epidermis
discuss with illustrations how to implement a simple home network ​
I NEED HELP THIS HW IS DUE TODAY​
Match each definition with its principle by choosing the right principle from each drop-down menu. separation of powers Power is divided between the national go
How long did Abraham and Sarah wait after the promises of GOD before trying this idea of getting a new wife?