You are viewing a single comment's thread. Return to all comments →
Why didn't you put that second dimentional index in place in stead of assigning pointers, like:
for(int i=0; i<ni i++){ int a; cin >> a; int seq[i] = new int[a]; for(int j=0; j<a; j++){ cin >> seq[i][j]; } }
And it will be simpler than using another integer pointer, b. Should I expect any risk of doing that?
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 →
Why didn't you put that second dimentional index in place in stead of assigning pointers, like:
And it will be simpler than using another integer pointer, b. Should I expect any risk of doing that?