Vidyalelo
C# Programming · Q86

Arrays and Strings in C Sharp

Programming · C# Programming · question 86

Q86

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
Answer
D.
ve CSARP

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board