in DS edited by
1,862 views
0 votes
0 votes

The expression $5-2-3*5 – 2$ will evaluate to $18$, if :

  1. $‘ – ‘$ is left associative and $‘*‘$ has precedence over $‘ – ‘$
  2. $‘ – ‘$ is  right  associative and $‘*‘$ has precedence over $‘ – ‘$
  3. $‘ – ‘$ is  right  associative and $‘ – ‘$ has precedence over $‘*‘$
  4. $‘ – ‘$ is  left  associative and $‘ – ‘$ has precedence over $‘*‘$
in DS edited by
by
1.9k views

4 Comments

thx
0
0
0
0

https://gateoverflow.in/253202/explain

 

 

 

correct answer is C

0
0

2 Answers

0 votes
0 votes
Option A is correct.

1 comment

Need step by step solution to that.
0
0
0 votes
0 votes

.                             Answer is c

reshown by
Answer:

Related questions