What will be the output of the following C# 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

1 thought on “What will be the output of the following C# code?”

Leave a Comment