How do the different integer data types differ from each other?
October 27, 2020 | Education
| • The shortint data type can have a range of values from -128 to 127 and occupies 1 byte in memory;
• smallint data type can range from -32768 to 32767 and occupies 2 bytes in memory;
• data types integer, longint can have a range of values from -2147483648 to 2147483647 and occupy 4 bytes in memory;
• the byte data type can have a range of values from 0 to 255 and occupies 1 byte in memory;
• word data type can have a range of values from 0 to 65535 and occupies 2 bytes in memory;
• data types longword, cardinal can have a range of values from 0 to 4294967295 and occupy 4 bytes in memory.
