Vidyalelo
C# Programming · Q95

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 95

Q95

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

A.
1, 97
B.
97, 65
C.
65, 97
Answer
D.
97, 1

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board