A

Admin • 802.91K Points
Coach

Q. What will be the output of the following C# code?

Code:
static void Main(string[] args)
{
string s1 = "Delhi";
string s2;
s2 = s1.Insert (6, "Jaipur");
Console.WriteLine(s2);
}
  • (A) DelhJaipuri
  • (B) Delhi Jaipur
  • (C) Delhi
  • (D) DelhiJaipur
  • Correct Answer - Option(D)
  • Views: 7
  • Filed under category C# (C Sharp)
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.