main2.c 242 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 #include <stdio.h> #include <stdlib.h> int main(int argc, const char* argv[]) { int *int_ptr = (int *)malloc(sizeof(int)); *int_ptr = 7; printf("Hello, world!\n"); printf("Now not crash %d\n", *int_ptr); // Not crash here. }