#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.
}
#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.
}