how to check precedency of operators using if condition???

how to check precedence of operators using if condition??? please help
If you aren't sure of the precedence of operators try using parentheses to group the values.
i want to check either the op1 has higher precedence than op2 or lower by using if condition..
op1='*';
op2='+';
is there any way to check them in if statement???such as
if(op1>op2) return 1;
Topic archived. No new replies allowed.