Regarding Iterators

Why the output is 5 ? What exactly we are trying to find?

hello @vanshikasharma1645

here in this video we are implementing a search function that takes start and end iterator and a key that we want to search.
if that key is present then it is returning iterator correspoding to that key.

we have searched for 5 that is why output we r getting is 5.

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.