Answers for "strcmp("

C++
5

strcmp

return
	>0 if first string is large
    <0 if first string is short
     0 if strings are equal
    
int strcmp ( const char * str1, const char * str2 );
Posted by: Guest on May-27-2021
1

strcmp

THINK STRING_1 - STRING_2

strcmp("ab",  "ac");  /* = -1 */
strcmp("abc", "ab");  /* =  1 */
strcmp("abc", "abc"); /* =  0 */
Posted by: Guest on August-06-2021

Browse Popular Code Answers by Language