Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Pascal
var
  s: string;
begin
  s := 'c';
end.

In Pascal you can assign a single character to a string variable.
S : constant String := "" & C;

Create string by concatenating character to empty string

New implementation...
< >
programming-idioms.org