Solved

Given the Strings Defined Below, Which Statement Will Not Return

Question 9

Multiple Choice

Given the strings defined below, which statement will not return 0? string s1{"Mighty Mouse"};
String s2{"Mickey Mouse"};


A) s1.compare(0, 3, s2, 0, 3) ;
B) s1.compare(7, 5, s2, 7, 5) ;
C) s1.compare(8, 12, s2, 8, 12) ;
D) s1.compare(7, 11, s2, 7, 11) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions