Home / Programming MCQs / C# MCQs / Question

S

Shivam • 8.86K Points
Tutor III

Q. What will be the output of the following C# code conversion?

Code:
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

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.