Doubt doubt doubt

" string : : iterator it ; " …this means ’ it ’ is an object of class iterator which is in class string ???

(1.) when i write auto it = p.begin() … then ‘it’ automatically becomes integer ???
(2.) par agr hum string : : iterator it = p.begin() ese likhe…tab humne uska data type ‘iterator’ bataya.

Difference kya h 1 and 2 me ???

hello @parth_tyagi

yeah right…

no here it will not be an integer, it will remain iterator.

both are iterator , no difference

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.