C examples for limits.h:CHAR_MAX
Macro
Maximum value for an object of type char. either SCHAR_MAX or UCHAR_MAX
#include <iostream> #include <limits.h> using namespace std; int main()//from www. j a v a 2 s.co m { cout << CHAR_MAX; return 0; }