The LongWord, Cardinal, LongInt and Integer are 4 bytes and Int64 and UInt64 as their name imply, are 8 bytes (64-bit). The Byte and ShortInt consumes only 8-bit (one single byte). The following shows their data ranges so you know weather they are signed or unsigned. The basic integer types for modern Delphi compilers are: byte, ShortInt, Word, SmallInt, LongWord, Cardinal, LongInt, Integer and Int64. The basic integer type in 16-bit Turbo Pascal is 16-bit while from 32-bit Delphi, it is 32-bit.
0 Comments
Leave a Reply. |