Please help. When I learned beginner C, I learned that
while ( strcmp ( name, "xxx") != 0)
meant that as long as name is not equal to "xxx" it will return a
number other than zero...meaning nonzero!=0 evaluating to true.
Then entering the loop.
Could someone explain how this code below evaluates the same way without using the !=0 ? I don't see how it is the same thing because it has to evaluate to true to enter the loop and it will evaluate to false as long as name doesn't equal "xxx" thus not entering the loop. Could someone help me uderstand how this example works the same as the first without using the != 0
I would appreciate it. Thanks
while ( strcmp ( name, "xxx" ))