0 votes 0 votes I want to know which evaluation is wrong here: a-b-c = ab-c- or a-b-c = abc- – a * b *c = ab*c* a*b*c = abc** 3 . a+b-c = ab+c- a+b-c = abc-+ Programming in C self-doubt infix-prefix programming-in-c + – Overflow04 asked Oct 2, 2022 Overflow04 460 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Rahul Sonaat commented Oct 2, 2022 i edited by Shaik Masthan Oct 3, 2022 reply Follow Share Each question’s 1st statement is correct and the 2nd one is wrong. 0 votes 0 votes Overflow04 commented Oct 2, 2022 reply Follow Share See this question and try to solve. 0 votes 0 votes Rahul Sonaat commented Oct 2, 2022 reply Follow Share Ans is option D 1. (--ABC) + D/E * (+FG) 2. (--ABC) + /DE * (+FG) 3. (--ABC) + */DE+FG 4. +--ABC*/DE+FG 0 votes 0 votes Shaik Masthan commented Oct 3, 2022 reply Follow Share When two operators have same preference, then associativity indecates which needs to evaluate further. Your first statements are based upon left associativity, where second ones are based upon right associativities. So first fix the associativity of operators, then try to convert into postfix/prefix 1 votes 1 votes Overflow04 commented Oct 3, 2022 reply Follow Share thank you 0 votes 0 votes Please log in or register to add a comment.