πŸ“Š .NET Programming
Q. What will be output of the following 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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 65, 97

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
516
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Madhu
Publisher
πŸ“ˆ
95%
Success Rate