Grouping of elements as per sequence of Evaluation - Data Structure

Q.  Which is the correct sequential order of constructing a binary tree for the expression a + b * c + d * e  ?

A. Moving the operator at the center of the group.
B. Inversion of the Structure.
C. Grouping of elements as per the sequence of Evaluation.

- Published on 27 Aug 15

a. A, B, C
b. B, C, A
c. B, A, C
d. C, A, B

ANSWER: C, A, B

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)