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