SizeOf packed record is different when record placed into packed array [0..0], see source please
31 Jan
2003
31 Jan
'03
7:25 p.m.
Hi All. program test; type t1 = packed record item1 : byte; item2: byte; item3: byte; end; t2 = packed array [0..0] of t1; begin writeln ('SizeOf (t1): ', SizeOf (t1)); writeln ('SizeOf (t2): ', SizeOf (t2)); readln; end. Output of program: SizeOf (t1): 3 SizeOf (t2): 4 Could anybody tell me - why? Thanks. software: gpc version 2.1 (20020510), based on 2.95.3 20010315 (release) Linux RedHat 2.5.52
8596
Age (days ago)
8596
Last active (days ago)
2 comments
3 participants
participants (3)
-
Frank Heckenbach -
Grant Jacobs -
Ingvar Marny