Don’t u think that instead of using 1D array of vectors ,we have to use 2D vector of vectors of students like vector<vector>v ; to store multiple students at the same index.
how is the code running for all multiple students at same index for a vector which can store one element at an index.
Please clear my doubt and reply as soon as possible.
Regarding the array of vectors in this video
yes you can use vector of vector instead of array of vectors
the approach will remain same
but how sir’s approach is working if a 1D vector can store a single element at a index.How he is able to push multiple elements at the same index which is not possible in 1d vector?
using only 1D array it is not possible
i am talking to take vector of vectors
but sir did this using 1d vector and output was correct? How is it possible?
sir use array of vectors which is same as vector of vectors
ya i forgot to see the array part