1 votes 1 votes The infix form of the following postfix form ‘P’ will be P: 3 , 5 , 7 , – , 10 , + , 4 , / , / (a) 3 / 5 – 7 + 10 / 4 (b) (((3 + 5) – (7 / 10 ))/ 4) (c) (3 / (((5 – 7) + 10) / 4)) (d) 3 + 5 – 7 / 10 / 4 Sanjay Sharma asked Dec 31, 2016 Sanjay Sharma 1.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes answer will be C) option focus _GATE answered Dec 31, 2016 selected Dec 31, 2016 by focus _GATE focus _GATE comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes option C is correct because ( 3 / ( ( ( 5 - 7 ) + 10 ) / 4 ) ) based on priority(postfix to infix).... 1. (5-7) 2. ((5-7)+10) 3. (((5-7)+10)/4) 4. ( 3 / ( ( ( 5 - 7 ) + 10 ) / 4 ) ) and finally answer is 3 5 7 - 10 + 4 / / which is match with "P" Statement. Deepak Yadav answered Dec 31, 2016 edited Dec 31, 2016 by Deepak Yadav Deepak Yadav comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes Run a Stack Operation : P : 3 ,5 , 7, - 10, + ,4 , / , / 3, 5, 7, –, 10, + , 4 , / , / 3 , (5 – 7) , 10 , + , 4 , / , / 3 , ((5 – 7)+ 10), 4 , / , / 3 , (((5 – 7)+ 10)/4) , / (3 / (((5 – 7) + 10) / 4)) Abhijit Borah answered Jan 3, 2017 Abhijit Borah comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes C Answer 3 , 5 , 7 , – , 10 , + , 4 , / , / 3 , (5 – 7) , 10 , + , 4 , / , / 3 , ((5 – 7) + 10) , 4 , / , / 3 , (((5 – 7) + 10)/4) , / (3 / (((5 – 7) + 10) / 4)) diwakar1996 answered Dec 31, 2016 diwakar1996 comment Share Follow See all 0 reply Please log in or register to add a comment.