Answer: k = 30, i = 11, j = 20
Operator of ++ has higher precedence than +.
Operator precedences in C/C++ have been listed below from highest to lowest.
Post ++ --, function call, array , ->, ., pre ++ --, !, ~, unary -, +,
address &, *(), sizeof(), new , delete, casting (type), .*, ->*,
Multiplication *, division /, mod %, +, -, <<, >>, <, <=,
>, >=, ==, !=, bitwise &, ^, |, &&, ||, ?:, &=, ^=, |=, comma
You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.
Similar topics related to this section
swap bits, bit set, reset/clear, toggle, xor operator, bitwise shifting, Operator precedence, operator precedence, ternary operator, fprintf, fscanf working principal, printing pointers,
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