Why is integer overflow undefined behavior only for signed integers, and not for unsigned integers?

后端 未结 0 715
无人及你
无人及你 2021-02-01 02:00

The purpose of making signed integer overflow undefined behavior is to permit compiler optimizations. But isn\'t this an equally valid argument to make unsigned integer overflow

相关标签:
回答
  • 消灭零回复
提交回复
热议问题