2
int x = 2;
int p = x-- + 3 * x;

This is printing 5 . Can someone explain this behaviour , multiply operator has higher precedence than add operator . Given this it should have printed 8

Juan Carlos Mendoza
  • 5,736
  • 7
  • 25
  • 50
redeemed
  • 471
  • 7
  • 22

0 Answers0