Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In C++, 64-bit computer integers, short integers and long integers account for several bytes respectively.
In C++, 64-bit computer integers, short integers and long integers account for several bytes respectively.
# Contains? & ltiostream & gt

int? Major (invalid)

{

int? Answer? =? 0;

Short? b? =? 0;

Dragon? int? c? =? 0;

STD::cout & lt; & lt

sizeof(a)& lt; & ltSTD::endl & lt; & lt

sizeof(b)& lt; & ltSTD::endl & lt; & lt

sizeof(c)& lt; & ltSTD::endl;

Return? 0;

}4 2 4 (depending on the system and compiler)

Although this is the foundation, the ability to find a way by yourself is also important.