Answers for "compare two strings character by character c++"

C++
1

how to compare two char* in c++

#include <string.h>
...
if (strcmp(firstSTR, secondSTR) == 0) {
    // strings are equal
    ...
} else {
    // strings are NOT equal
}
Posted by: Guest on January-14-2021

Code answers related to "compare two strings character by character c++"

Browse Popular Code Answers by Language