N Ngân Lam New member Sep 18, 2021 #1 What will be the output of the following C# code? Code: static void Main(string[] args) { char A = 'K'; char B = Convert.ToChar(76); A++; B++; Console.WriteLine(A+ " " +B); Console.ReadLine(); } A. M L B. U L C. L M D. A B
What will be the output of the following C# code? Code: static void Main(string[] args) { char A = 'K'; char B = Convert.ToChar(76); A++; B++; Console.WriteLine(A+ " " +B); Console.ReadLine(); } A. M L B. U L C. L M D. A B
P Phương Linh New member Sep 18, 2021 #2 Answer: c Explanation: "++" increments the value of character by 1. A and B are given values K and 76, when we use increment operator their values increments by 1, A and B becomes L and M. Output: Code: L, M. Upvote 0 Downvote
Answer: c Explanation: "++" increments the value of character by 1. A and B are given values K and 76, when we use increment operator their values increments by 1, A and B becomes L and M. Output: Code: L, M.