1.

Describe The Order Of Precedence With Regards To Operators In C?

Answer»

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 =.

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 =.



Discussion

No Comment Found