Dynamic allocation by eltony

what it is dynamic allocation elton ?

Last edited on
I don't know who elton is.
Dynamic allocation is allocating memory (usually used when an array size is nonconstant)

1
2
3
4
5
6
 int size;
cout << "enter size of our array:";
cin >> size;
int * dynamicarray = new int [size]; //allocation

delete dynamicarray[]; //deallocation  

Last edited on
Topic archived. No new replies allowed.