Examveda

What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    String c = "Hello i love you";
    String a ;
    a = c.Substring(12, 3);
    Console.WriteLine(a);
    Console.ReadLine();
}

A. ove

B. you

C. yo

D. love you

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C Sharp