how to check if a pointer points to null code example Example: c check if null int * some_ptr; if (some_ptr == NULL){ } else { }