Question 1919 – Data-Structures
November 28, 2023
Application-Layer-Protocol
November 28, 2023
Question 1919 – Data-Structures
November 28, 2023
Application-Layer-Protocol
November 28, 2023

Question 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.
A
‘-‘ is left associative and ‘*’ has precedence over ‘-‘
B
‘-‘ is right associative and ‘*’ has precedence over ‘-‘
C
‘-‘ is right associative and ‘-‘ has precedence over ‘*’
D
‘-‘ is left associative and ‘-‘ has precedence over ‘*’
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!