hi every one
i am really confused about {$A} preprocessor .
the documentation said : The {$ALIGN directive can be used to select the data alignment strategy of the compiler for records.
ok take a look at this
{$A4}
type
test = record
x,y : char;
end;
begin
writeln(sizeof(test)); // expect 8 , but its 2
end.
so how dose the Alignment of data works ?
thanks