DazedNConfused
Programmer
I'm having trouble in understanding this.For example,
If we have an array BEANS[j]:
*(*(beans+i)+j)-why does *(beans+i)refer to an address of the element and not it's value?Afterall,'*'is INDIRECTION operator.Why does only the outmost '*' behave like indirection operator?
I have another question.This two expresions are the same:
*(beans+j)-this one I understand
(*(beans+i))[j]-why is indirection operator in parentheses,shouldn't it be just the other way:
*((beans+i)[j])
Thank you for helping me out,so I can finaly skip the confused part in my name
If we have an array BEANS[j]:
*(*(beans+i)+j)-why does *(beans+i)refer to an address of the element and not it's value?Afterall,'*'is INDIRECTION operator.Why does only the outmost '*' behave like indirection operator?
I have another question.This two expresions are the same:
*(beans+j)-this one I understand
(*(beans+i))[j]-why is indirection operator in parentheses,shouldn't it be just the other way:
*((beans+i)[j])
Thank you for helping me out,so I can finaly skip the confused part in my name