Programming Languages C# Objective
Mar 06, 2013

What is the output of given code.

String s1="Kicit";

Console.Write(s1.IndexOf('c') + " "); 

Console.Write(s1.Length);

Choose the correct answer:
A) 3 6
B) 2 5
C) 3 5
D) 2 6
Detailed Explanation

Option B is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback