Vidyalelo
C# Programming · Q124

Arrays and Strings in C Sharp

Programming · C# Programming · question 124

Q124

What will be the output of the following C# code? static void Main(string[] args) string s1 = " Cshr "; string s2 = s1.Insert(3 , " a "); string s3 = s2.Insert(5 , " p "); for (int i = 0;i < s3.Length; i++) Console.WriteLine(s3[i]); Console.ReadLine();

A.
Cshar
B.
CsharP
C.
Csharp
Answer
D.
Cshrap

Answer: Option C

Solution

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