CouldnoT Posted May 29, 2020 Share Posted May 29, 2020 (edited) Sub types There are many sub types for variables, for example, Integer number subtypes differ in the range and the number of required bytes to store values in memory. The table below contains integer types, value ranges, and required bytes in memory: We can get the minimum and maximum values and bytes sizes for each type by using the Low, High, and SizeOf functions respectively, as in the example below: program SubTypes; uses wincrt; begin Writeln('Byte: Size = ', SizeOf(Byte), ', Minimum value = ', Low(Byte), ', Maximum value = ', High(Byte)); Writeln('Integer: Size = ', SizeOf(Integer), ', Minimum value = ', Low(Integer), ', Maximum value = ', High(Integer)); Readln; // avoid closing the program, you can also use readkey end. Edited May 29, 2020 by CouldnoT 1 Link to comment Share on other sites More sharing options...
Clanin3 Posted June 2, 2020 Share Posted June 2, 2020 Topic inactiv. Link to comment Share on other sites More sharing options...
Recommended Posts