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}+{1}", a, b);
}
}
}
β
Correct Answer: (C)
10+20