ExamVeda
Login
Home
Arrays and Strings in C Sharp
?

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();
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.