Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - VB asks which data type needs the least memory capacity?
VB asks which data type needs the least memory capacity?
The data type that occupies the least memory in VB is Boolean, which can only store the true and false values of 0 and 1.

Another data type that takes up less memory is "Byte", which can store 0-255***256 integers;

If you want to choose a data type that can store Integer value 300 and occupy less memory, you can choose "integer", whose data storage range is-32,768 to 32,767, which is the data type that VB can store integer value 300 and occupy the least memory.