Vidyalelo
C# Programming · Q74

Arrays and Strings in C Sharp

Programming · C# Programming · question 74

Q74

What will be the output of the following C# code? static void Main(string[] args) String c = "Hello"; String a ; a = c.Replace('l', 'w'); Console.WriteLine(a); Console.ReadLine();

A.
Helloll
B.
Hewlo
C.
Helwo
D.
Hewwo
Answer

Answer: Option D

Solution

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