C Language - Memory Leak Concept

 



#include <stdio.h>


int main()

{

int i = 0;

int *ptr;

while (i<34353)

{

printf ("welocme to code with shan\n");

ptr = malloc (34234 * sizeof (int));

if  (i % 100 == 0) 

{

getchar();

} i++;

free (ptr);

} } 


// ScreenShots:





Comments

Popular Posts