Computer Science, asked by singhmasuta182, 1 year ago

When deallocating a memory location pointed to by a pointer?

Answers

Answered by TechGenius
6
need to load the memory location referenced on the pointer first
Answered by orangesquirrel
1

When you want to deallocate a memory location pointed to by a pointer, you first need to load the memory location that has been assigned by the pointer.

Deallocation is a process in which blocks of memory which are not in use are released so that other programs can use them efficiently.

All the modern programming languages support deallocation. Deallocation is mainly done with the help of pointers.

They are variables that store the address of other variables. Pointers can allocate memory very easily.

Similar questions