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

1. Bernardo de Gálvez was a friend to the United States. He helped in providing _____________ and weapons.
A spinner is divided into 4 equal sections colored red, green, blue, and orange. Ennis spins the spinner. What is the probability that he dont not spin orange?
Why do most premature babies have breathing troubles?
30008876543*98765435678
how do i solve 2 1/2 x 1/2
How do you simplify 1 π (64)^2 (6)
can someone help please and thanks
How might HIV/AIDS hurt the countries that are most severely affected?
If -2 < x < -1 then which of the following orders x , x^2 , and x^3 from least to greatest? A. x < x^2 < x^3 B. x^2 < x^3 < x C. x^3 < x &
Night by Elie Wiesel . What have you learned about life in concentration camps so far that is different than or the same as what you already knew or expected?