ExamVeda
Login
Home
File Handling and Input Output in C Sharp
?

What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    String a ="i love iostream";
    Console.WriteLine(a.IndexOf('i') + " " + a.IndexOf('e') + " " + a.LastIndexOf('i') + " " + a.LastIndexOf('e'));
    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.