Interview answers verified by specialists.

Find interview questions and answers on this website:


See right interview answers on 30 common job interview questions

Give a Character Type Example ?

Consider an example in which we declare one variable of type char, initialize it with value 'a', then 'b', then 'A' and print the Unicode values of these letters to the console:

// Declare a variable

char ch = 'a'; 

// Print the results on the console 

Console.WriteLine( "The code of '" + ch + "' is: " + (int)ch); ch = 'b';

Console.WriteLine( "The code of '" + ch + "' is: " + (int)ch); ch = 'A'; 

Console.WriteLine( "The code of '" + ch + "' is: " + (int)ch);

// Console output: 

// The code of 'a' is: 97 

// The code of 'b' is: 98 

// The code of 'A' is: 65

Do you know that?

Web programming, graphic designers, and writers/bloggers are the top three skills Upwork-Elance clients anticipate being most valuable in 2015-2016 Next

Articles:

Popular:

Fast Payments
Payoneer sing up to get free 
$25