Computer Science, asked by ashvinipimpale5, 1 month ago

The operators have hierarchy it is useful
to know which operator​

Answers

Answered by satishchander2314
1

Explanation:

Operator precedence determines the grouping of terms in an expression and decides how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has a higher precedence than the addition operator.

Answered by kartavyaguptasl
0

Correct Question:

Operators have hierarchy. It is used to know which operator:

  1. is most important
  2. is used first
  3. is faster
  4. operates on large numbers

Answer:

The correct answer to the given question is found to be option (2) is used first.

Explanation:

All  arithmetic expressions are evaluated  using two properties of the operator, they are:

  • Operator hierarchy
  • Operator associativity

To solve such complex expressions  using precedence and associativity, you need  a solid understanding of logical and relational operators.

Operator hierarchy:

The order of precedence or order in which  operations within an operation statement are performed is called the operator hierarchy.

Also known as operator precedence  or operator precedence rules.

For example, [200 – 4 * 25] evaluates to 200 – (4 * 25), instead of (200 – 4) * 25, resulting in a result of 100. This is because multiplication ( * ) takes precedence over subtraction ( – ).

#SPJ3

Similar questions