Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))

Answer Posted / amit patra

=a-b+c*(d/e-(+fg)
=a-b+c*(/de-(+fg)
=a-b+c*(-/de+fg)
=a-b+c*-de+fg
=-ab+c*-de+fg
=*-+abcde+fg

Is This Answer Correct ?    1 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do sets allow duplicates?

537


Is an arraylist a vector?

485


What do you mean by heap order property?

582


write a program to show the insertion and deletion of an element in an array using the position

492


When ArrayIndexOutOfBoundsException occurs?

649






Which algorithm is used in arrays sort?

468


Can we override compareto method for enumerations?

566


Can I provide array size dynamically?

516


What are different types of algorithms?

483


What is the use of isEmpty() member methods?

516


What are the drawbacks of array implementation of queue?

667


Describe the complexity of Quick Sort

545


What is the capacity of arraylist?

466


Which data structures are used in bfs and dfs algorithm?

549


How many types of data structure are there?

451