Question
What will be output of the following conversion ?
static void Main(string[] args) { char a = 'A'; string b = "a"; Console.WriteLine(Convert.ToInt32(a)); Console.WriteLine(Convert.ToInt32(Convert.Tochar(b))); Console.ReadLine(); }
static void Main(string[] args) { char a = 'A'; string b = "a"; Console.WriteLine(Convert.ToInt32(a)); Console.WriteLine(Convert.ToInt32(Convert.Tochar(b))); Console.ReadLine(); }
Answer: Option C
Was this answer helpful ?
ASCII value of character 'a' is 65 and ASCII value of string "a is 97. Output: 65,97
Was this answer helpful ?
Submit Solution