Problem in operator overloading of []

v[2]=8
v[2] returns a pointer
then v[2]+=6 should be a ponter arithmetic
then how it be adding the content it should perform pointer arithmetic

@Ninja01
Hello Nityanand ,
can u please tell how u have declared ur vector.

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.

Is your doubt resolved?

@Ninja01
bro check ur chat i had replied there .

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.

@Ninja01 tell me exactly where are you getting doubt since already 2 TAs have responded you in these problem.

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.