how the dymnamic array num[] is declared for certain input integer say t?
This is a discussion on dyanmic array within the C++ Programming forums, part of the General Programming Boards category; how the dymnamic array num[] is declared for certain input integer say t?...
how the dymnamic array num[] is declared for certain input integer say t?
SOME_TYPE *myDynamicArray;
int t;
.
.
.
myDynamicArray = new SOME_TYPE[t];
.
.
.
.
delete [] myDynamicArray; // dont forget to deallocate your memory