Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 239

Comment by Peter - Reinstate Monica on '\0' evaluates false, "\0" evaluates true

$
0
0
Note that while "\0" compares unequal to 0, *"\0" compares equal (since it is a char of value zero). (By the way, the reason you never see a string literal dereferenced except in this comment, even though it is entirely legit, is that it is entirely useless.)

Viewing all articles
Browse latest Browse all 239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>