How to declare a string with double quote substrings in Pascal

1 Answer

0 votes
program DoubleQuoteStringExample;
var
  str: string;
begin
  str := 'This is a string with "double-quoted substring1", and "double-quoted substring2" inside.';
  
  writeln(str);
end.



  
(*
run:
  
This is a string with "double-quoted substring1", and "double-quoted substring2" inside.
  
*)

 



answered May 12, 2025 by avibootz
...