I have a vector and I am adding elements using push_back.
When I am debugging I have added one element to the vector, but the vector contains elements for [0] and [1]. The [1] is the element which I pushed on, but [0] looks like some sort of nullable object.
The vector size is 2 also- even though I have only inserted once.
Later in my code I will traverse the vector using vector_name[i]. Initially I would start with i=0, does this mean with a vector you should use 1 (or some sort of iterator)?
The first element should be
vector[0].For example:
Will print
300.