Q. What will be the output of the following C# code?

Code:
using System;

namespace MyApplication {
  class Program {
    static void Main(string[] args) {
      int a = 10, b = 20;
      Console.WriteLine("{0},{0}", a, b);
    }
  }
}
  • (A) 10,10
  • (B) 10,20
  • (C) 20,20
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10,10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
296
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
91%
Success Rate