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

What is adt in data structure?

1070


What is bubble sort and selection sort?

1032


Which is the parent class of linkedlist class?

1115


Tell me how to find middle element of linked list in one pass?

954


What is the difference between Strings and Arrays?

1136


What is complete binary tree and almost complete binary tree?

871


What is data structure what is need of it?

941


Write an algorithm to show the postfix expression with the input given as : a b + c d +*f ? .

974


What is the purpose of sorting?

975


What are different types of linked lists?

999


Does hashmap allow duplicate keys?

1064


What is binary search in data structure?

975


What does args stand for?

968


What is the similarity between a Structure, Union and enumeration?

1073


how to delete first node from singly linked list?

1230