c check if null

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

Also in C: