Strings and Characters
C2 has string and character like C and are very similar.
Character literals are used like this:
char c = 'a';
String literals are used like this:
char* s = "the quick brown fox\n";
Multi-part strings are also supported:
const char Multi = "the" " quick" " brown" " fox\n";
No backspaces are required after each line.
C2 defines a number of escape sequences on a character or string literal:
\a- audible bell
\f- new page/form feed
\r- carriage return
\v- vertical tab
\xXX- where XX is a hexadecimal number (eg. \x12)
\ooo- where ooo is an octal number (eg. \177)