0
why strcmp(name,"name")==0 gives true in C when both the strings are same?
Strings in C
2 ответов
+ 5
That's exactly how strcmp() works. It returns 0 if the strings are the same, else returns non-zero value.
https://www.tutorialspoint.com/c_standard_library/c_function_strcmp.htm
0
Thank you Carrie I thought it was just like boolean values . Well Thank you very much.