engineering recuitment ISRO Scientist Computer Science Mock Test Compiler Design Syntax Analysis Associativity
The expression 5 – 2 – 3 * – 3 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 ‘*’