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

Please answer quick!
I need help with this please​
5. What is the meaning of "naked" as used by the author in Paragraph 4? A bare B hidden C obvious D unclothed
The larger the radius of a wheel in comparison to the radius of its axle, the _______ the mechanical advantage will be. a. greater b. more stable c. less stable
Please help for brainlist :)
What is the yo form conjugation of poner.
selecting computers with epeat power supplies should reduce the annual operating cost of a computer by what?
Using the midsegments of the triangle in the image below, what is the perimeter of АВС? Give your answer as just a number. Please help I’m desperate. I just don
How do you think Revere intended his viewers to understand the event?​
Eeeeeeeeeeee help me :C