- Code: Select all
var
S:String;
P:^string;
begin
P:=@s;
showmessage(P^);
end;
the content of P is shown and i know P is pointing to S,but exactly where? the very first memory unit of S? S[0]?
and another thing
in C we have *(a+1) which means defrencing the next memory unit after a, do we have such thing in delphi?