16 lines
260 B
C
16 lines
260 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main() {
|
|
while (1) {
|
|
void* temp = malloc(1024);
|
|
*((long int*) temp) = 1024;
|
|
if (temp == NULL) {
|
|
printf("Memory is full\n");
|
|
break;
|
|
}
|
|
|
|
}
|
|
return 0;
|
|
}
|