Open mucahitdemir opened 2 years ago
You can't (usefully) compare strings using != or ==, you need to use strcmp:
while (strcmp(check,input) != 0) The reason for this is because != and == will only compare the base addresses of those strings. Not the contents of the strings themselves.
while (strcmp(check,input) != 0)
The strcmp() compares two strings character by character. If the strings are equal, the function returns 0.
You can't (usefully) compare strings using != or ==, you need to use strcmp:
while (strcmp(check,input) != 0)
The reason for this is because != and == will only compare the base addresses of those strings. Not the contents of the strings themselves.