ex59.pp 261 B

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