MCQs>IT & Programming>C#>What is the output when following code is executed? using System; using StringBuilder; namespace Text { class Program { public static void Main(string[] args) { StringBuilder sb = new StringBuilder('hello world in c#'); sb.Insert(4, 'example'); Console.WriteLine(sb); Console.ReadLine(); } } }
C# MCQs
What is the output when following code is executed? using System; using StringBuilder; namespace Text { class Program { public static void Main(string[] args) { StringBuilder sb = new StringBuilder("hello world in c#"); sb.Insert(4, "example"); Console.WriteLine(sb); Console.ReadLine(); } } }
Answer
Correct Answer: Compile time error
Explanation:
Note: This Question is unanswered, help us to find answer for this one