So i have a simple question. Basically im trying to understand the following code.
if (!strcmp ( str1, str2 ) )
Does this mean that if the two strings are the equal then the if statement will execute the code?
Last edited on
Yes. strcmp returns 0 if the two strings are the same. if (! 0) executes the following statement block since 0 evaluates to false and ! false is true.