Check out example codes for "c check if null". It will help you in understanding the concepts better.

Code Example 1

int * some_ptr;
if (some_ptr == NULL){
} else {
}

Learn ReactJs, React Native from akashmittal.com