cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
how to check precedency of operators usi
how to check precedency of operators using if condition???
Mar 19, 2013 at 6:05pm UTC
azmizryk
(41)
how to check precedence of operators using if condition??? please help
Mar 19, 2013 at 6:08pm UTC
jlb
(4973)
If you aren't sure of the precedence of operators try using parentheses to group the values.
Mar 19, 2013 at 6:21pm UTC
Peter87
(11238)
http://en.cppreference.com/w/cpp/language/operator_precedence
Mar 19, 2013 at 6:22pm UTC
azmizryk
(41)
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.