Tag: C++ : strcmp() Tutorial | Comparing strings
C++ : strcmp() Tutorial | Comparing strings
In this article we will discuss how to compare strings using strcmp(). strcmp() is a C Library function that helps to compare two strings i.e. char * Advertisements int strcmp ( const char * firstStr, const char * secondStr ); It iterates over both strings i.e. firstStr & secondStr in parallel and compares each character …