How do we use cout when i am returning a pointer to the value?

When i return a pointer to the value of the searched query, does cout take a pointer as an argument?

@tusharnitharwal
Can you please better frame your query ?
I could not understand it

can i pass a pointer as an argument to cout? Because in the program we have overloaded [ ] to return a pointer and when we pass this to cout, how does it get printed?

@tusharnitharwal
We are not returning a pointer from [ ]
& is a reference operator
You’re sending the element itself via [ ] not its pointer