tbs0171.pp 213 B

123456789101112
  1. type
  2. pstring=^string;
  3. const
  4. drivestr:string='c:';
  5. pdrivestr:pstring=pstring(@drivestr);
  6. begin
  7. if pdrivestr^<>'c:' then
  8. begin
  9. Writeln('Error in typecast of const');
  10. Halt(1);
  11. end;
  12. end.