MCQOPTIONS
Saved Bookmarks
| 1. |
. A memory leak happens when |
| A. | a program allocates memory in heap but forgets to be allocate it |
| B. | when an un-assigned pointer is used is freed using free function |
| C. | when realloc() is called on a pointer that is not allocated |
| D. | A program allocates memory in stack |
| Answer» B. when an un-assigned pointer is used is freed using free function | |