A
Q. What will be the output of the following C# code?
Code:
using System;
class Program {
static void Main(string[] args) {
String str = "Hello";
Console.WriteLine(str.Length);
}
}
class Program {
static void Main(string[] args) {
String str = "Hello";
Console.WriteLine(str.Length);
}
}
- Correct Answer - Option(A)
- Views: 36
- Filed under category C# (C Sharp)
- Hashtags:
Discusssion
Login to discuss.