Skip to content
Snippets Groups Projects
null_pointer_4.c 140 B
Newer Older
Andre Maroneze's avatar
Andre Maroneze committed
int main() {
  int x;
  // is this guaranteed to trap (rather than be
  // undefined behaviour)?
  x = *(int*)NULL;
  printf("x=%i\n",x);
}