FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Ranked the basic priority in operator
A
*/%, (), +-
B
(), */%, +-
C
+-, */%, ()
D
(), -+, */%
Explanation: 

Detailed explanation-1: -The operators are listed in order of priority, group 1 having the highest priority and group 7 the lowest. All operators in the same priority group have the same priority. For example, the exponentiation operator ** has the same priority as the prefix + and prefix-operators and the not operator ¬.

Detailed explanation-2: -The operator precedence is responsible for evaluating the expressions. In Java, parentheses() and Array subscript[] have the highest precedence in Java. For example, Addition and Subtraction have higher precedence than the Left shift and Right shift operators.

Detailed explanation-3: -Precedence of operators In C, the precedence of * is higher than-and = .

There is 1 question to complete.