Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

FrozenNULL

Name: (frozen_t)(void*) 2010-08-29 17:00


int a = NULL + 5;
printf("%d\n", a);



Prints 5, therefore NULL is #defineD to 0.

Name: Anonymous 2010-08-29 17:54

>>1,2
Actually, the value of NULL is implementation specific. That's why you should test a pointer with if (ptr == NULL) or if (!ptr), rather than if (ptr == 0).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List