sir please tell what is vectors and why it is different from vectors.
what is v.begin() and v.end()
Vectors and arrays
hello @tejuschaturvedi0
vectors are like array only
Size of arrays are fixed whereas the vectors are resizable i.e they can grow and shrink as vectors are allocated on heap memory. Arrays have to be deallocated explicitly if defined dynamically whereas vectors are automatically de-allocated from heap memory.
v.begin() gives iterator that points to the first element of vector.
v.end() gives iterator that points to address that is next of last element of vector.
check vector playlist of ur course for clarity
Thanks sir i understood. The playlist of vector is far from where i am now.
…
no issue ,u can learn it later
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.