Answers for "strcmp different length"

C++
1

strcmp different length

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