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

A 5 paragraph essay on Unit 3 - Evidence Based Argument Set pls someone help me write this essay its urgently need today
Similarity:  Math was hard for me in high school. _________________, it is hard in college. Houseplants require much care and attention. _________________ outdo
What does “ just be honest with me “ mean?
1) Alzheimer's disease is a type of ______ caused by death of brain neurons. A. Amnesia B. Dementia C. Senility D. aging
In the adjoining figure, the parallel lines are marked by arrow lines. The value of angle 1 is:
based on the electron configuration of the two atoms predict the ratio of metal cationic (+) atom to nonmetal anionic (-) atom in the compound. hydrogen and flu
3 3/4 ÷ (1 2/3 + 2 1/2)​
hello, me again polease help me with this, and show work
which of the following fractions is NOT equivalent to the others? A. 24/36 B. 8/12 C. 12/16 D. 4/6
Good evening! Can someone please answer this, ill give you brainliest and your earning 50 points. Would be very appreciated.