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 could I take out/add/replace to make this shorter? A particular atom will have the same number of protons and electrons. Most atoms have at least as many n
who ever that can do this just know I thank you86 points ​
Find the solution to the system of equations. 21x+7y=42 -5x+5y=10
help ....................
Mi carro es más que el carro de mis padres. O cortos O corto O cortas O corta
Which of the following could be the lengths of the sides of a 45°-45°-90° triangle?
what is meant by sustain?​
this is a haploid cell with half the reproductive information from the parent
true or false the presidential candidate who gets the most popular votes awlays wins the election?
how has the jester archetype evolved over thr years?