The Gateway to Computer Science Excellence
0 votes
35 views

in Compiler Design by Active (4.9k points) | 35 views

1 Answer

0 votes
Best answer
As per the question, all the operators are left associative.

Now evaluating 3-2*4^2^3

As per order of precedence, we can put the paranthesis as : {(3-2)*4}^2^3

=> [{(1*4)^2}^3]

=> (4^2)^3

=> 16^3

=> 4096
by Loyal (7.2k points)
selected by

Related questions

0 votes
1 answer
1
asked Oct 24, 2018 in Compiler Design by Balaji Jegan Active (4.9k points) | 51 views
0 votes
1 answer
2
asked Oct 24, 2018 in Compiler Design by Balaji Jegan Active (4.9k points) | 29 views
0 votes
0 answers
3
asked Oct 24, 2018 in Compiler Design by Balaji Jegan Active (4.9k points) | 18 views
0 votes
1 answer
4
asked Oct 24, 2018 in Compiler Design by Balaji Jegan Active (4.9k points) | 24 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,648 questions
56,429 answers
195,218 comments
99,954 users