in DS edited by
596 views
1 vote
1 vote

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
596 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

Answer:

Related questions