#include #include #include int main() { srand(time(NULL)); while (1) { void* temp = malloc(1024); *((long int*) temp) = rand(); if (temp == NULL) { printf("Memory is full\n"); break; } } return 0; }