Home / C# Programming / Strings - C# :: Discussion

Discussion :: Strings - C#

  1. Which of the following will be the correct output for the C#.NET code snippet given below?

    String s1 = "ALL MEN ARE CREATED EQUAL"; String s2; s2 = s1.Substring(12, 3);  Console.WriteLine(s2);

  2. A.
    ARE
    B.
    CRE
    C.
    CR
    D.
    REA
    E.
    CREATED

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment