The faculty is saying that we cannot it+1 since it is not a linear structure but how it++ is working then. ( in the case of initalisation of iterator jt)
For loop definitions (how jt is not wriiten it+1 when it++ is working)
hello @great
random access is not allowed hence u can do i+1 and that is the reason we are using next function in place of i+1
++ is working becuase this operator is overloaded and its definition is given in iterator class.
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.