Operators in C have precedence like below order starting from highest to lowest priority -
Post ++, --, call (), [], ->, dot(.), pre ++, --, !, ~, unary -, +, &, *(pointer), sizeof, new, delete, (type), .*, ->*, arithmetic *, /, %, +, -, <<, >>, <, <=, >, >=, ==, !=, Bitwise &, ^, |, Logical, &&, ||, ternary ? :, = , *=, /=, %=, +=, -=, <<=, >>=, &=, ^= |=, comma
Example:
i+++j
Can be i + (++j) or (i++) + j
As per precedence sequence order displayed post increment has higest priority.
((i++) + j) will be evaluated.
About our authors: Team EQA
You have viewed 1 page out of 252. Your C learning is 0.00% complete. Login to check your learning progress.