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 is '7b-2b+3-1' ? Need working and it's equations!!
What is the Difference between Research and Investigation???
If a > 0 and b < 0, then which of the following must be true. ab > 0 a + b < 0 a - b > 0 a + b > 0 b - a > 0
how does  a star form?
if i got 68 correct on my math test and the total is 85 what is the score?
The fetus is nourished by the __________ during the first 7 weeks and by the _______ from week 8 through birth ?
What causes chemical weathering?
how do I solve (3+i)(3-i)
Add the following fractions.3/8 + 5/12 =
how does  a star form?