|
|
strcmp ( name, "four" ) != 0 || strcmp ( name, "4" ) != 0 || strcmp ( name, "Four" ) != 0
For this to be false all of the strcmp ( name, XXX ) != 0
has to give false. That only happens if name is equal to "four", "4" an "Four" at the same time which is impossible because a string can't be many strings at the same time. That means the whole condition will always give true, so the loop will never end.