The Gateway to Computer Science Excellence
+1 vote

Which of the following expression is represented by the parse tree ?

  1. $(A + B) ^{*} C$
  2. $A + ^{*} BC$
  3. $A + B * C$
  4. $A * C + B$
in DS by Boss (30.8k points)
recategorized by | 393 views

3 Answers

+2 votes

(A) option ans.

by Boss (20.1k points)
0 votes
answer is c it is to be seen from left to right
by Boss (10.7k points)
How is C correct?

Shouldn't the operator be evaluated first be placed at the lowest level?
0 votes
Ans: A
by Loyal (7.3k points)
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,737 questions
57,313 answers
105,046 users