.NET Programming

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();
}

  • A. 1, 97
  • B. 65, 97
  • C. 65, 97
  • D. 97, 1
Answer: Option C. 65, 97
Explanation: 

No answer description available for this question.

Leave a Reply

Your email address will not be published.

Back to top button
error: Alert: Content is protected !!