InterviewSolution
| 1. |
गिव एग्जांपल ऑफ डायनेमिक मेमोरी एलोकेशन |
|
Answer» mers can dynamically allocate storage space while the program is running, but programmers cannot create new variable names "on the FLY", and for this reason, dynamic allocation requires TWO criteria:Creating the dynamic space in memoryStoring its address in a pointer (so that space can be accessed)Memory de-allocation is also a PART of this concept where the "clean-up" of space is done for VARIABLES or other data storage. It is the job of the programmer to de-allocate dynamically created space. For de-allocating dynamic memory, we USE the delete operator. In other words, dynamic memory Allocation refers to performing memory management for dynamic memory allocation manually.Mark as brainliest plz |
|