Variable Sized Arrays

  • + 1 comment

    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<