C++ Dynamic memory

  • Download Info

    Author:
    Version:
    1
    Views:
    15
    File size:
    888.89 kB
    Downloads:
    0
    Updated:
    August 12, 2020
    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.