A
Q. Which of the following will be the correct output for the C#.NET code snippet given below?
Code:
String s1 = "ALL MEN ARE CREATED EQUAL";
String s2;
s2 = s1.Substring(12, 3);
Console.WriteLine(s2);
String s2;
s2 = s1.Substring(12, 3);
Console.WriteLine(s2);
- Correct Answer - Option(B)
- Views: 21
- Filed under category .NET Programming
- Hashtags:
Discusssion
Login to discuss.