Describe the order of precedence with regards to operators in C.

2 years ago
C Programming

Order of precedence determines which operation must first take place in an operation statement or conditional statement. On the top most level of precedence are the unary operators !, +, - and &. It is followed by the regular mathematical operators (*, / and modulus % first, followed by + and -). Next in line are the relational operators <, <=, >= and >. This is then followed by the two equality operators == and !=. The logical operators && and || are next evaluated. On the last level is the assignment operator =.

0
Sanisha Maharjan
Jan 20, 2022
More related questions

Questions Bank

View all Questions