#include #include // for malloc #include #define ARRAY_SIZE 10 int main(int argc, char **argv) { int *p; // dirty some memory p = (int*)malloc(ARRAY_SIZE * sizeof(int)); // takes size in bytes if ( p == NULL ) error(1, 0, "Out of memory!"); for (int i=0; i