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.

You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.

 Vote 0

Similar topics related to this section

reverse bits, swap bits, bit set, reset/clear, toggle, xor operator, bitwise shifting, Operator precedence, operator precedence, ternary operator, fprintf, fscanf working principal,

# C Programming Language (Prentice Hall Software)
# Let Us C Paperback - 2006 by Yashavant Kanetkar
# Understanding and Using C Pointers Core techniques for memory management
# Data Structures Using C and C++ Paperback - 1998
# Data Structures In C Paperback - August 11, 2008 by Noel Kalicharan