What will be the output of the following C# code 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();
}
A. 1, 97
B. 97, 65
C. 65, 97
D. 97, 1
Answer: Option C
Join The Discussion