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

Discussion :: Strings - C#

  1. Which of the following statements will correctly copy the contents of one string into another ?

  2. A.
    String s1 = "String"; String s2;  s2 = s1;
    B.
    String s1 = "String" ;  String s2; s2 = String.Concat(s1, s2);
    C.
    String s1 = "String";  String s2; s2 = String.Copy(s1);
    D.
    String s1 = "String";  String s2; s2 = s1.Replace();
    E.
    String s1 = "String";  String s2; s2 = s2.StringCopy(s1);

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment