here the auto variable ‘it’ returns an address so should it not be initialized just like we initialize a pointer?
or is it that the syntax of the find function looks like this ?
Returning the value of find function
hello @aayushitalwar02
it is an iterator (an object of iterator class) . its behaviour is more like pointer but for declaration we dont have to use *.
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.