Vidyalelo
C# Programming · Q125

Arrays and Strings in C Sharp

Programming · C# Programming · question 125

Q125

What will be the output of the following C# code? static void Main(string[] args) string s1 = "Hello I Love Csharp "; Console.WriteLine(Convert.ToChar( (s1.IndexOf('I') - s1.IndexOf('l')) * s1.IndexOf('p')); Console.ReadLine();

A.
I
B.
Hello I
C.
Love
D.
H
Answer

Answer: Option D

Solution

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