Programming Languages C# Objective
Mar 06, 2013

Which will be the correct output for the C#.NET code.

String s1 = "Nagpur";

String s2;

s2 = s1.Insert(6, "Mumbai"); 

Console.WriteLine(s2);

Choose the correct answer:
A) NagpuMumbair
B) Nagpur Mumbai
C) Mumbai
D) Nagpur
Detailed Explanation

Option E is the right answer.

Discussion (0)

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

Share Your Thoughts
Feedback