1

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

Correct Answer: int c; c = s1.CompareTo(s2);

Make the most of this question

This page focuses on one C++ MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

C++ MCQs MCQ: For two strings s1 and s2 to be equal, which is the correct way to find if the contents of two strings are equal? | Extra Education