How to declare a constant string in Pascal

1 Answer

0 votes
program ConstantStringExample;

const
  str: string = 'ABC';

begin
  WriteLn(str);
end.



(*
run:

ABC

*)

 



answered Jun 19, 2025 by avibootz
...