#include <iostream>
int main()
{
unsigned short int smallNumber;
smallNumber = 65535;
std::cout << "small number:" << smallNumber << std::endl;
smallNumber++;
std::cout << "small number:" << smallNumber << std::endl;
smallNumber++;
std::cout << "small number:" << smallNumber << std::endl;
short int smallNumber1;
smallNumber1 = 32767;
std::cout << "small number:" << smallNumber1 << std::endl;
smallNumber1++;
std::cout << "small number:" << smallNumber1 << std::endl;
smallNumber1++;
std::cout << "small number:" << smallNumber1 << std::endl;
return 0;
}
|