无符号字符越界

#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
  unsigned char a = 254;
  unsigned char b = a + 6;
  printf("b=%d
",b);
  return 0;
}

结果:b=4

原文地址:https://www.cnblogs.com/happykoukou/p/5427444.html