
Pointers II-197
Here, in this declaration, 20 bytes are allocated to pointer variable pnt of type int and base
address is returned to pointer pnt.
2. free() function: It is used to release the memory allocated by memory allocating functions.
Thus, by using this function, the wastage of memory is prevented. The declaration of the function
is as follows:
free (pnt)
In the above declaration, pnt is a pointer. The free() function releases the memory occupied by
the pointer variable pnt.
30. Explain the concept of dynamic memory allocation.
Ans: There is a technique by which a program can obtain space in the main memory ...