Getting ASCII value of the a character in C#

Raja
Posted by Raja under C# category on | Points: 40 | Views : 7562
To get the ASCII value of the character in C#, use following code.

            char c = 'B';
Console.WriteLine((int)c);
Console.Read();


Thanks

Comments or Responses

Login to post response