What is memory leak?

Showing Answers 1 - 4 of 4 Answers

rkreddy--9886529595

  • Aug 17th, 2006
 

let us consider a pointer

int *p = (int*) malloc(100);

here i hasbeen allocated with 100 bytes of continues memory for to use......

suppose if i use again

p=(int*)malloc(50);

here i can't able to use the first allocated 100 bytes of memory using the variable p,

it is possible to use lost assigned 50 bytes only, that means the first 100 bytes got unused , it is called as memory leak

  Was this answer useful?  Yes

sampat

  • Dec 28th, 2006
 

here we r utilizing at least 50.

then i think its not proper memory leak.i will be glad if u

plz explain with details.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions