Cpp

Cpp

1

Dynamic Memory

Until now, in all our programs, we have only had as much memory available as we declared for our variables,

having the size of all of them to be determined in the source code, before the execution of the program. But, what

if we need a variable amount of memory that can only be determined during runtime? For example, in the case

that we need some user input to determine the necessary amount of memory space.

Report Page