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

Axon diameter and degree of myelination determine nerve impulse conduction velocity. True or False?
Although generally not considered to be alive,a _______ is studied alongside other microbes such as bacteria
About​ ______% of the area is between zequalsminus1 and zequals1 ​(or within 1 standard deviation of the​ mean).
do areas with low density have cold water?
What is the answer to the q????
solve the equation j/3 = 4.5​ J=
which statement about oil is not true
what is the meaning of life? plz i need to know
Please help me out with this! I will give brainliest if I can!
Use formula I=prt to solve: Steve borrowed 450$ for 3 years the yearly interest rate was 13%. How much interest did he owe at the end of 3 years?