Char Literal
#include "stdafx.h" #using <mscorlib.dll> using namespace System; Int32 main(void) { Byte a = 'a'; // character 'a' Char b = L'b'; // Unicode 'b' Byte t = '\t'; // tab escape Char s = L'\\'; // Unicode backslash escape Byte d = '\45'; // octal escape Char e = L'\x0045'; // Unicode hexadecimal escape Console::WriteLine ( a ); Console::WriteLine ( b ); Console::WriteLine ( t ); Console::WriteLine ( s ); Console::WriteLine ( d ); Console::WriteLine ( e ); return 0; }