Nguyễn Cap Tuyến
New member
What will be the output of the following C# code snippet?
A. CSHAP
B. CSHP
C. CSHALP
D. CSHP
Code:
class Program
{
static void Main(string[] args)
{
String s1 = "CSHARP";
String s2 = s1.Replace('H','L');
Console.WriteLine(s2);
Console.ReadLine();
}
}
B. CSHP
C. CSHALP
D. CSHP