+ 7

Explain please in C++

string s1("hi sololearn"); string s2("hi solo"); cout << s1.compare(s2); Why result is 5 ???

9th Apr 2019, 7:34 AM
UraL
4 Respuestas
+ 6
On-line C++ compiler in Web do answer 5 too
9th Apr 2019, 8:15 AM
UraL
+ 6
About 5 characters I saw too:-)
9th Apr 2019, 8:38 AM
UraL