1000. What are the advantages of allocating memory dynamically?

 

  1. We do not have to have contiguous blocks of RAM
  2. We do not need to specify how much memory we require in advance
  3. We use only the amount of RAM we need
  4. We free-up RAM when we don’t need it (and reuse later if we do)
  5. We can get more RAM than if we attempt to request large blocks of RAM