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