ex59.pp 212 B

12345678910111213
  1. Program Example59;
  2. { Program to demonstrate the Ptr function. }
  3. Var P : ^String;
  4. S : String;
  5. begin
  6. S:='Hello, World !';
  7. P:=Ptr(Seg(S),Longint(Ofs(S)));
  8. {P now points to S !}
  9. Writeln (P^);
  10. end.