According to the reference, this function compares whole set of characters in both strings, and returns zero if they're both equal or different to zero if they differ at any character. Further detail is on the reference.
s1 == s2:
This will only compare pointer in both char array.
Therefore if you need to compare full strings you should use strcmp method rather than equality on char arrays.
I agree with the above explanations. For a more complete, '==' is a relational Operator and checks if the values of two operands are equal or not. 'strcmp()' is a function that starts comparing the first character of each string. If they are equal to each other, it continues with the following pairs until the characters differ or until a terminating null-character is reached. Also, this function performs a binary comparison of the characters.