You are viewing a single comment's thread. Return to all comments →
hi, you need to add code for deallocation
for (int i = 0; i < ni; ++i) delete[] a[i];
otherwise you'll have memory leak.
Seems like cookies are disabled on this browser, please enable them to open this website
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →
hi, you need to add code for deallocation
otherwise you'll have memory leak.