char c = 'a'; a=Convert.ToInt32(c); Console.WriteLine("hi" + a);//displays output:- Hi97 a=Convert.ToInt32(Console.ReadLine());//Gives complie time error(throws an exception) if I enter 'a'(a only without quotes) on screen.
Convert.ToInt32()
Console.ReadLine()
97
Int32.TryParse
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)