Can somebody help out a beginner here?
Does the pointer p have any association with the array a or would I have to add an extra line with something like
I would have thought that they don't have any association, seing that you could declare two ordinary variables eg
and they wouldn't have any association with each other but in a book I've been reading lately it implied that *p would be a pointer to the array a.
Can somebody clarify for me?
Code:
int a[5], *p;
Does the pointer p have any association with the array a or would I have to add an extra line with something like
Code:
*p = &a[0];
I would have thought that they don't have any association, seing that you could declare two ordinary variables eg
Code:
int a, b;
Can somebody clarify for me?