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();
}
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