C++ Dynamic memory

  • Download Info

    Author:
    Version:
    1
    Views:
    1356
    File size:
    888.89 kB
    Downloads:
    6
    Updated:
    August 3, 2021
    Categories:
  • (0)
    « »

    In the programs seen in previous chapters, all memory needs were determined before program execution by defining the variables needed. But there may be cases where the memory needs of a program can only be determined during runtime. For example, when the memory needed depends on user input. On these cases, programs need to dynamically allocate memory, for which the C++ language integrates the operators new and delete.