Sail E0 Webinar
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(); }
Options:
A .  1, 97
B .  65, 97
C .  65, 97
D .  97, 1
Answer: Option C


ASCII value of character 'a' is 65 and ASCII value of string "a is 97. Output: 65,97



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers