0

I just read this link. Now I know why i = i++ is an UB.

But I don't know why ++++i is an UB too.

For example,

int i = 2;
++++i;

I think the value of i should be 4. Isn't this a defined behavior? (I'm talking about C++98 and C++03)

Bathsheba
  • 227,678
  • 33
  • 352
  • 470
Yves
  • 10,315
  • 11
  • 69
  • 141

0 Answers0