You are viewing a single comment's thread. Return to all comments →
you need a fixed size array in which each element point to a variable array (whose size can be change )like vector v[2];
v[0] is pointing to a variable size array v[1] is pointing to a variable size array
if you want to push data into these vector : v[0].push_back(10); // put the 10 in at the end of the variable array
and you can access the element in array like: cout<
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 →
you need a fixed size array in which each element point to a variable array (whose size can be change )like vector v[2];
v[0] is pointing to a variable size array v[1] is pointing to a variable size array
if you want to push data into these vector : v[0].push_back(10); // put the 10 in at the end of the variable array
and you can access the element in array like: cout<