A
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);
}
}
}
namespace MyApplication {
class Program {
static void Main(string[] args) {
int a = 10, b = 20;
Console.WriteLine("{0},{0}", a, b);
}
}
}
- Correct Answer - Option(A)
- Views: 4
- Filed under category C# (C Sharp)
- Hashtags:
Discusssion
Login to discuss.