C++ underflow and overflow

前端 未结 4 1015
不知归路
不知归路 2020-12-11 19:15

Hi I am new in here so please let me know if anything is wrong and I will try to better the next time .

I am trying to understand how underflow and overflow works i

4条回答
  •  甜味超标
    2020-12-11 20:02

    Typically yes. But since this is C++, and C++ is regulated by the C++ standard, you must know that overflows are undefined behavior.

    Although what you stated probably applies on most platforms, it's in no way guaranteed, so don't rely on it.

提交回复
热议问题