Learn Programming with C++ - Overflow & Underflow

preview_player
Показать описание
This video is part of the Learn Programming with C++ video series. In this video, I talk about what happens when we try to store a larger/smaller value into a shorter/longer bit-range. #coding #programming #cplusplus #computerscience

___ Social Media ___

___ Equipment ___
Рекомендации по теме
Комментарии
Автор

Why does the number become -12 instead of 244? 11110100 is 244 in Binary. The reason is because we are using char type and char has negative numbers too. -128-127. I think

rossphillipgerard
visit shbcf.ru