Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • C
char s[2] = {0};
s[0] = c;

This contains a 0 at the end, if you don't need that, replace the [2] with a [1].
S : constant String := "" & C;

Create string by concatenating character to empty string

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