Examveda

What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    string c = "hello";
    string  c1 = c.Remove(1);
    Console.WriteLine(c1);
    Console.ReadLine();
}

A. ello

B. h

C. hell

D. none of the mentioned

Answer: Option B


Join The Discussion

Related Questions on Arrays and Strings in C Sharp