Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
// NULL pointer is a pointer pointing to nothing #include <stdio.h> // #define NULL 0 in stdio.h int main(int argc, char **argv) { int *p = NULL; printf("%p",p); // A pointer that point to nothing. return(0); } /* run: 0000000000000000 */
// NULL pointer is a pointer pointing to nothing #include <stdio.h> int main(void) { int *p1 = NULL; printf("p1 = %p\n", p1); int *p2 = '\0'; printf("p2 = %p\n", p2); return 0; } /* run: p1 = 0000000000000000 p2 = 0000000000000000 */