Oddly, the C++ standard explicitly says “a computation involving unsigned operands can never overflow”. This is contrary to general programming consensus that integer overflow encompasses both signed and unsigned use cases (cite). Given that most programmers would consider this overflow, we’ll call this overflow despite C++’s statements to the contrary.
C++ 기초 배우고 있는데 이게 먼솔임?
c++ 스탠다드에 unsigned 는 오버플로 없다라고 되어있는데 실제로는 있다? 라는 뜻임?
영어가 짧아서 해석이안되네
C++ 기초 배우고 있는데 이게 먼솔임?
c++ 스탠다드에 unsigned 는 오버플로 없다라고 되어있는데 실제로는 있다? 라는 뜻임?
영어가 짧아서 해석이안되네
프로그래밍 갤러리로 저 문장이 뭔 소린지 모르겠어서 질문할 정도면 원서 빨리 버리고 한국어 C++책을 보던가 다른 언어로 바꾸는게 맞다고 본다. 비꼬는게 아니라 본인쟝도 Bjarne Stroustrup 책 샀던 경험이 있음
unsigned integer wrap 에 대해 공부하도록
C++표준에서는 unsigned는 오버플로우가 안난다고 말하지만, 일반적으로 프로그래밍에서는 정수(integer)의 signed unsigned는 오버플로우는 발생한다는게 중론이다. 중론이 그러하니, C++표준의 주장과 다르게 우리는 이것을 오버플로우로 보겠다. 그냥 해석해봤는데, 틀릴수도 있음.
틀린 거 없이 완벽하게 해석했음
ㄳ 사실첨보는단어가 많아서 단어줜나검색하면서 찾은건데, 다행이네 맞아섴ㅋ 퓨..