#include <limits.h> #include <iostream> int main() { for(unsigned char ch = 0; ch <= UCHAR_MAX; ++ch){ std::cout << (int)ch << std::endl; } }
ch
UCHAR_MAX
++ch