Find function find

why give address after compiing

this is inbuilt function we can’t change its defination
it will return address
with the help of address you can do everything so returning the address is good choice

The behavior of this function template is equivalent to:

template<class InputIterator, class T>
  InputIterator find (InputIterator first, InputIterator last, const T& val)
{
  while (first!=last) {
    if (*first==val) return first;
    ++first;
  }
  return last;
}