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 sort order?

911


What are the disadvantages of representing a stack or queue by a linked list?

975


why boundary tag representation is used?

977


What is difference between arraylist and list?

993


Is hashtable better than dictionary?

1007


How will you free the memory that is allocated at run time?

1031


Explain what are the major data structures used in the network data model?

1152


What do you mean by 2-3-4 tree?

1048


What is the use of prototype?

965


Write a program for Sorting an Array. Which sorting will you prefer?

1024


Difference between calloc and malloc in data structures?

966


How can I search for data in a linked list?

988


Which sorting technique is best in worst case?

961


Which data structures are used in bfs and dfs algorithm?

1095


List the applications of set adt?

963