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

Answer Posted / p.divya poojitha

a-b+c*(/de-(+fg))
a-b+c*(t-s) if t=/de;s=+fg
a-b+c*(-ts)
-ab+*c-ts
+-ab*c-ts
sol is +-ab*c-/de+fg

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me do array subscripts always start with zero?

496


How do you rotate an AVL tree?

556


Explain linked list in short.

514


Can treemap key null?

578


What is data structure what is need of it?

474






What is the function of stack?

462


How do you find the complexity of a bubble sort?

463


What are the tasks performed during preorder traversal?

606


Is tuple immutable?

443


What is arraylist load factor?

508


Can you please explain the difference between array_name and &array_name?

542


Does hashset allow duplicates?

551


Why do we use linked lists?

467


How do you find the number of comparisons in bubble sort?

506


What is the use of bubble sort?

520