Y
Hacker News
new
|
ask
|
show
|
jobs
by
userbinator
3070 days 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).
1 comments
Koshkin
3069 days ago
>
a different type
This is true in C++ but not in C.
link
This is true in C++ but not in C.