Discussion :: JUnit MCQs
-
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();}
Answer : Option C
Explanation :
ASCII value of character 'a' is 65 and ASCII value of string "a is 97. Output: 65,97
Be The First To Comment