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,558
  • 7
  • 24
  • 50
redeemed
  • 457
  • 5
  • 18

0 Answers0