Does the following snippet compile/execute the block in the if-statement?
int* pointer = NULL;
int deref = *pointer;
if(deref == NULL){
// will execute?
}
Since the pointer
variable contains NULL does the dereference of this pointer variable also return NULL or will this result in a runtime error?