The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+2 votes
82 views

asked in Compiler Design by Active (1.9k points) | 82 views

1 Answer

+3 votes
Best answer

from the given SDT we conclude some rules

i)' *'  is least priority and left associative.

ii)'-' is 2nd highest priority and left associative

iii) '/' is highest priority and right associative.

1)    8/4*2-6*4

=2*2-6*4 (8/4=2)

=2*-4*4 (2-6=-4)

=-2*4 (2*-4=-2  addition property for *)

a1=2

2) 6*2/1-2*3

=6*2-2*3

=6*0*3

=6*3

a2=9.

so a1-a2=2-9=-7

answered by Veteran (12.6k points)
selected by
my answer is - 32

Related questions

+2 votes
2 answers
1
+1 vote
1 answer
3


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

28,981 questions
36,818 answers
91,201 comments
34,706 users