Raven1791 Raven1791
  • 03-07-2019
  • Computers and Technology
contestada

if (quotaAmt > 100 || sales > 100 && productCode == "C")
bonusAmt = 50;

When the above code is executed, which operator is evaluated first?

a.
||

b.
==

c.
=

d.
&&

Respuesta :

PhantomWisdom PhantomWisdom
  • 16-07-2019

Answer:

==

Explanation:

Operator precedence, it tells about the flow of operator execution o which operator execute first and which execute last.

'==' > '&&' > '||' > '='

According to precedence table,

the equal equal operator '==' comes first. so, it execute first and then NOT operator, then OR operator and finally equal operator.

Answer Link

Otras preguntas

what happened after world war 2 spanish-american war abolish movement civil rights movement the great war
factor the equation (4x^2+ 12x + 9)
15 POINTS -1883: Pendleton Act passed -1887: Interstate Commerce Act passed -1890: Sherman Anti-Trust Act passed This legislation reflects the government's at
A 15.75-g piece of iron absorbs 1086.75 joules of heat energy, and its temperature changes from 25°C to 175°C. Calculate the specific heat capacity of iron.
Can someone help me with this?
Look at the graph below.What is the slope of the line?​
the common uses of radioactive elements in health care.
What does the hypothalamus do and where is it located
The acts of achieving peace by giving up something valuable is called isolationism. blitzkrieg. fascism. appeasement.
Write a short summary about Half-Life Model