Vidyalelo
C# Programming · Q168

Miscellaneous in C Sharp

Programming · C# Programming · question 168

Q168

What will be the output of the following C# code snippet? class Program static void Main(string[] args) String s1 = "CSHARP"; String s2 = s1.Replace('H','L'); Console.WriteLine(s2); Console.ReadLine();

A.
CSHAP
B.
CSHP
C.
CSHALP
Answer
D.
CSHARP

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board