πŸ“Š C#
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))
πŸ’¬ Discuss
βœ… Correct Answer: (B) int c; c = s1.CompareTo(s2);

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
176
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Shivam
Publisher
πŸ“ˆ
94%
Success Rate