ExamVeda
Login
Home
Basic Syntax and Data Types in C Sharp
?

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

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.