In the video to print the list
He used * in front of it
why that ?
ans if it is a address then cout<<it should print address but it is showing error
Why * before iterator
You cannot directly print an iterator. You need to dereference it for which * is used.
Refer this:
1 Like
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.