![]() |
CITS2002 Systems Programming |
← prev | next → | ![]() |
![]() |
|||
Dynamically allocating memory for arraysIf we use new[] to allocate arrays, they can have variable size
We then de-allocate arrays with delete[] :
Allocating class instancesnew can also be used to allocate a class instance The appropriate constructor will be invoked
The appropriate constructor will be invoked.
CITS2002 Systems Programming, Lecture 23, p11, 17th October 2023.
|