Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / deepshikha singh

first we solve() because it has greatest priority
step1 : a-b+c*(d/e-[+fg])
step2 : a-b+c*([/de]-[+fg])
step3 : a-b+c*[-/de+fg]
step4 : a-b+[*c-/de+fg]
step5 : a-[+b*c-/de+fg]
step6: -a+b*c-/de+fg
note :[] sign is use to differentiate two terms after applying
operations.

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design a datastructure to represent the movement of a knight on a chess board

953


What is variable size arrays?and why we use it?

1017


You want to insert a new item in a binary search tree. How would you do it?

894


How do you do a mergesort?

901


Can we remove element from arraylist while iterating?

962


Is it possible to insert different type of elements in a stack? How?

905


Is collection a class or interface?

897


What is the complexity of sorting algorithm?

884


how to display Singly Linked List from First to Last?

891


How do you do a heap sort?

869


Is it legal to initialize list like this?

963


Why do we need searching algorithms?

1081


How to copy an array into another array?

959


Can arraylist contain duplicates?

848


What does arrays tostring do?

868