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

Discussion :: Strings - C#

  1. If s1 and s2 are references to two strings, then which of the following is the correct way to compare the two references?

  2. A.
    s1 is s2
    B.
    s1 = s2
    C.
    s1 == s2
    D.
    strcmp(s1, s2)
    E.
    s1.Equals(s2)

    View Answer

    Workspace

    Answer : Option E

    Explanation :

    No answer description available for this question.


Be The First To Comment