1 | #include <stdio.h> |
---|---|
2 | #include <stdlib.h> |
3 | |
4 | int main(int argc, const char* argv[]) |
5 | { |
6 | int *int_ptr = (int *)malloc(size: sizeof(int)); |
7 | *int_ptr = 7; |
8 | printf(format: "Hello, world!\n"); |
9 | printf(format: "Now not crash %d\n", *int_ptr); // Not crash here. |
10 | } |
11 |