I was doing the exercise of Operating Systems: Three Easy Pieces chapter 14 Memory API.
And I am wondering why segmentation fault is not thrown when I didn't use the p variable?
#include <stdlib.h>
#include <stdio.h>
int main(){
  int* p = NULL;
  // if I print the p variable an segmentation fault is thrown.
  // but if I am not, nothing will happen.
  //printf("%d\n",*p);
  free(p);
}
