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

11 more than twice a number x
Right speech  · Right action  · Right effort  · Right mindfulness  · Right concentration  These are five of the eight most important aspects of what ideology
What is the term for the basic plan for the United States government?
Joseph drives 125 miles in 2 1/2 hours. At the same rate, how far will he be able to travel in 6 hours
594 7/25 + 89 37/100= please help with this math problem
Find the missing number in the patter explain your reasoning 12,24,72,288
What is the value of x in the equation 0.2(x 1. 0.5x = –0.3(x – 4)?
Which of the following best describes Daniel Webster’s views? a. .he disagreed with slavery but supported compromise b. he declared nullification a form of trea
Whats an Inciting Incident
what is the relationship between spain and england?