why do we need to write
cout<<( * it );
what is the need of * here.? we have not passed it by reference then why everytime to print we need to write it as * it…??? please explain.
why do we need to write
cout<<( * it );
what is the need of * here.? we have not passed it by reference then why everytime to print we need to write it as * it…??? please explain.
it is an multiset iterator which is usually a pointer to access the value its pointing towards you need to use *it