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. 14 hours in 2 weeks
Underline the independent clause in this sentence. 4. After three attempts, Jack finally passed his written driving test with a perfect score.
Match each symbol on the left with its figurative meaning on the right. a red rose peace and love a white dove love and romance an eagle surrender and humility
HELP FAST PLEASE!!!!! Read this excerpt from “The Open Window” by H. H. Munro. What point of view is used in the excerpt? “My aunt will be down presently, Mr. N
Geometry Transcribing Angles Question
Using the problematic pairs correctly
3.876•10 with an exponent of 7, writen in standard form
Here are six measurements of the electrical conductivity of an iron rod. 10.06 9.87 10.03 10.14 10.19 10.09 The iron rod is supposed to have conductivity 10.1.
If you have 30 on your debit card can you buy a make up compact yes or no
What is an example of epistrophe?