| 1 | #include <stdio.h> |
|---|---|
| 2 | |
| 3 | const char *hello_world = "Hello, segfault!"; |
| 4 | |
| 5 | int main(int argc, const char* argv[]) |
| 6 | { |
| 7 | int *null_ptr = 0; |
| 8 | printf(format: "%s\n", hello_world); |
| 9 | printf(format: "Now crash %d\n", *null_ptr); // Crash here. |
| 10 | } |
| 11 |
