How is a[i] is same as *(a + i)?
Here a is the name of the array. Then how does *(a+i) has any significance?
CPP - Pointers PDF
hello @yajurkhurana there is no hard concept in this .
it is just the syntax which works correctly .
when we are doing +i in the array name that is being added to the zero index and in that way it works properly .
i hope you know why * is used ?
Happy Learning!!
Yeah I know why * is used. Thanks!
hey @yajurkhurana if you feel that your doubt is cleared please mark this doubt as resolved .
Happy Learning !!
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.