Why only start cant be used to use iterators?
Iterators Example
I want to know why *start is use as iterator?Can I used without ’ * '?
No, u cannot use start without ‘*’ (to compare with key). As, u would have seen, start=list.begin() and hence is storing the address of the beginning of list. So, in order to get the value present at the beginning of list, we will have to use *start (using * we try to access the value present at start address here).
Moreover, We are using start as iterator since it is storing the address of beginning of the list through which we wish to iterate.
Hope this resolves ur doubt.
Hi @Arnabiswas, i hope ur doubt was resolved.
If yes, please mark d doubt as resolved.
else if u still have any query regarding the above mentioned doubt, u can ask it here.
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.