NIELIT 2017 DEC Scientific Assistant A - Section B: 59
in DS edited by
506 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
by
637 1328 876
506 views

2 Comments

0
0

https://gateoverflow.in/253202/explain

 

 

 

correct answer is C

0
0

Subscribe to GO Classes for GATE CSE 2022

1 Answer

0 votes
0 votes
Option A is correct.
by
3 8

1 comment

Need step by step solution to that.
0
0
Answer:

Related questions