How is dynamic array's memory space removed in Delphi
Delphi Interview Questions
(Continued from previous question...)
How is dynamic array's memory space removed in Delphi
Declaration
ADynamicCharArray : ^CharArrayType;
Allocation
ADynamicCharArray := AllocMem(NumChars * sizeof(char));
Release
FreeMem(ADynamicCharArray, NumChars * sizeof(char));
(Continued on next question...)
Other Interview Questions
|