Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
if(a);
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="CBFalconer, post: 1710549"] This will probably never be noticed in the noise generated on the thread. However: char *ptr; int main(void) { if (ptr) .... .... } carries the meaning "does ptr exist". It will have been statically initialized to NULL, or (void *)0 with the intrinsic meaning "no such beastie exists". Similarly for a NULL return from malloc. I.e. my point is that the meaning of NULL is "I don't exist". Whether or not a test for NULLity should involve a specific comparison has no specific answer. At times, the == NULL (or != NULL) will emphasize something or other, and is useful. At other times it is pointless. It is simply not worth something like 60 articles with varying levels of invective. Is this post very useless, or very very useless. Maybe useless. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
if(a);
Top