3 ms·
How? '\0' is the same value as 0 (only with a different type, which doesn't matter in this case), and if(x != 0) is the same as if(x).
by userbinator 9y ago
How? '\0' is the same value as 0 (only with a different type, which doesn't matter in this case), and if(x != 0) is the same as if(x).
- Koshkin 9y ago> a different type This is true in C++ but not in C.