0

Iterator basic question please help

what is V1 .begin() means and what is its value .I tried to print it but gives error.and if I print *(v1.begin())it will print the value of first element of vector.Why I can't treat it as pointer? https://code.sololearn.com/cZQAicu9LRYV/?ref=app

23rd May 2018, 10:07 AM
Bahubali
Bahubali - avatar
3 odpowiedzi
+ 1
https://www.geeksforgeeks.org/introduction-iterators-c/ https://www.geeksforgeeks.org/iterators-c-stl/
23rd May 2018, 11:08 AM
ODLNT
ODLNT - avatar
0
You need to take look at you first cout statement.
23rd May 2018, 10:49 AM
ODLNT
ODLNT - avatar
0
I correct that one
23rd May 2018, 10:51 AM
Bahubali
Bahubali - avatar