It might sound quite simple question but I am a bit confused.What I want to know is difference between these two vector declarations in c++.
vector< vector<int> >a(some_size)
vector<int>b[some_size]
I want to know situations in which we can use one of these but not other one. Please provide situations other than those dependent on fixed size of array and variable size of vector.Please provide sample code to prove your point.
Thanks in advance.