Hi..,
When Converting infix to postfix expression see that you must NOT use BODMAS rule. in C++ , the multiplication '*' sign has a HIGHER precedence than '\' .
Detailed article :
Operator Precedence
C contains many operators, and because of the way in which operator
precedence works, the interactions between multiple operators can become
confusing.
x=5+3*6;
X receives the value 23, not 48, because in C multiplication and division have higher precedence than addition and subtraction.
char *a[10];
Is a a single pointer to an array of 10 characters, or is it an
array of 10 pointers to character? Unless you know the precedence
conventions in C, there is no way to find out. Similarly, in E.11 we saw
that because of precedence statements such as *p.i = 10; d
...
Read more »