I know that the name of an array is a pointer to the first element of the array, so is this correct?
int a[ ] = {1,2,3,4};
cout << *(a+2);
thanks
Pam
I know that the name of an array is a pointer to the first element of the array, so is this correct?
int a[ ] = {1,2,3,4};
cout << *(a+2);
thanks
Pam