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
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
You must be logged in to post a comment.
d
Explanation: Insert method() of string class used to join two strings s1 and s2.
Output : DelhiJaipur