हिंदी

Draw the tree structure for the following expression: Y = (A + B)/[(C * D + E)] - Computer Science 1

Advertisements
Advertisements

प्रश्न

Draw the tree structure for the following expression:

Y = (A + B)/[(C * D + E)]

आकृति
लघु उत्तरीय
Advertisements

उत्तर

Expression without assignment

(A + B)/(C ∗ D + E) 

Main operator = /
Left subtree = A + B
Right subtree = (C * D + E)

Expression Tree Diagram:

            /
          /   \
        +       +
       / \     /   \
      A   B   *     E
               / \
              C   D

If assignment (Y =) is included:

              =
            /   \
           Y     /
               /   \
             +     +
            / \   /   \
          A   B  *   E
                  / \
                 C   D
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (July) Official Board Paper

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×