#include #include // for malloc #include #define ARRAY_SIZE 100 #define myFree(p) { free(p); p = NULL; } int main(int argc, char **argv) { int *p; // what happens when we use a dangling pointer? p = (int*)malloc(ARRAY_SIZE * sizeof(int)); for (int i=0; i