#include #include main() { char* buff; int count; count=0; while(1) { printf("\nOOM Test: Counter = %d", count); buff = (char*) malloc(1024); // memset(buff,'\0',1024); count++; if (buff==NULL) { printf("\nOOM Test: Memory allocation error"); } } }