int main() { int a, i = 0; int *i2; while (i < 45545) { printf("Welcome to Code With Harry\n"); i2 = malloc(34444 * sizeof(int)); if (i % 100 == 0) { getchar(); } i++; free(i2); // Without this we will encounter a situation of memory leak } return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter