Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
     String a = "Ilove";
     String b = "CSHARP";
     b = string.Concat(a,' ',b);
     string d = b.TrimStart('I', 'l', 'o', 'H');
     Console.WriteLine(d);
     Console.ReadLine();
}

A. Ilove CSHARP

B. love CSHARP

C. ve CSHARP

D. ve CSARP

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C Sharp