我想知道在这种情况下C++的行为如何:
char variable = 127; variable++;
在这种情况下,变量现在等于-128.但是,增量运算符是将值包装到其下限还是发生了溢出?
提前致谢!
c++ increment char
c++ ×1
char ×1
increment ×1