Question 1919 – Data-Structures
November 28, 2023Application-Layer-Protocol
November 28, 2023Question 1976 – Data-Structures
The expression 5-2-3*5-2 will evaluate to 19, if:
Correct Answer: C
Question 363 Explanation:
Evaluation procedure:
Step-1: 5-2-3*5-2 will be 19.
Step-2: if it is treated as (5-(2-3))*(5-2)
Step-3: – has precedence over * and if it associates from the right.
Step-1: 5-2-3*5-2 will be 19.
Step-2: if it is treated as (5-(2-3))*(5-2)
Step-3: – has precedence over * and if it associates from the right.
‘-‘ is left associative and ‘*’ has precedence over ‘-‘
‘-‘ is right associative and ‘*’ has precedence over ‘-‘
‘-‘ is right associative and ‘-‘ has precedence over ‘*’
‘-‘ is left associative and ‘-‘ has precedence over ‘*’
Subscribe
Login
0 Comments