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 434 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments 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.