//********************************************************************** // Integer arithmetic //********************************************************************** #include using namespace std; int main() { short a, b, c; a = 32767; b = a+a; c = a+1; cout << a << " " << b << " " << c << endl; return 0; } /* output: 32767 -2 -32768 */