I know that the title is not clear at all , but i use this code to tell what i want to ask assume the following simple code :
void example(int *a)
{
for(i = 0 ; i < 20 ; i++)
{
printf(" %d number is %d \n " , i , a[i]);
}
}
int main()
{
int a[20] ;
// assume that the array is filled
example(a);
return 0 ;
}
so my question is ,what is the 'addresing mode' that c language follow , if we write a[i] ? if we just follow the rules of pointer or syntax of pointer we must write this in this way *a[i] , since we need to show the value that *a point on it , and not the address ?