*it used for output

When we use cout<<(*it)<< to diplay in output, what we want to display

“it” is pointer so it stored the address of a location

*it is the value stored at the location whose address is stored by it

simply *it represent the value which is pointed by pointer “it”

to study pointers in detail you can refer this playlist

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.