the caracter tiip


the caracter daata tiip is an unsiind, 16 bit daata tiip that holds aa unicohd character. the unicohd character set supports orl characters ou orl spocen languuags. the 8-bit ascii character set is aa subset ou unicohd and characters phronn this character set raang phronn 0-127. hens, ascii characters ar supported in c#.

aa character uaireeabl nnaa bee inishaliisd bii enclosing aa character constant in singl cuuotes, as in the cohd that pholouus.

caracter ch = 'a';
caracter ch1;
ch1 = 'b';

althouu caracter is an integer daata tiip, it dus not nnics phreeli uuith uther integer daata tiips. so phor ecsannpl, the pholouuing cohd uuohnt uuorc.

caracter ch;
ch = 20;  // eror: uuohnt uuorc.

aa tiip cast uuood bee reecuuiird too nnaac this cohd uuorc.