1.

What will be the output of the code snippet? class Program { static void Main(string[] args) { String s1 = "Hello World"; String s2 = s1.Substring(0, 4); Console.WriteLine(s2); Console.ReadLine(); } }

A. Hello
B. Hell
C. H
D. Hello World
Answer» C. H


Discussion

No Comment Found