Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
C++ is statically typed — every variable must declare its type at compile time. The type determines how much memory is allocated and what operations are valid.
int4BWhole numbersfloat4BDecimal (6-7 digits)double8BDecimal (15-16 digits)char1BSingle characterbool1Btrue / falselong long8BLarge integersshort2BSmall integersunsigned int4BNon-negative onlylong double16BExtended precisionwchar_t2-4BWide characterUse sizeof(type) to check the exact byte size on your system. Sizes may vary across platforms and compilers.