A

Admin • 833.24K Points
Coach

Q. For two strings s1 and s2 to be equal, which is the correct way to find if the contents of two strings are equal?

  • (A) if(s1 = s2)
  • (B) int c; c = s1.CompareTo(s2);
  • (C) if (s1 is s2)
  • (D) if(strcmp(s1, s2))
  • Correct Answer - Option(B)
  • Views: 27
  • Filed under category C# (C Sharp)
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.