Tag: Check if two char arrays are equals in C++
Check if two char arrays are equals in C++
This tutorial will discuss about a unique way to check if two char arrays are equals. We can use the strcmp() function to compare two char arrays. It accepts two strings (char pointers) as arguments, and compares both the strings alphabetically. If both the strings are equal then it will return 0. So, to check …