Global and Extern Pointers, Arrays

Doug Gwyn gwyn at smoke.brl.mil
Sat May 25 06:44:51 AEST 1991


In article <3153 at cirrusl.UUCP> Rahul Dhesi <dhesi at cirrus.COM> writes:
>However, B is not a pointer.  It's just treated like one sometimes.  It
>is a SYMBOLIC NAME FOR AN ADDRESS.

I really cannot condone looking at array names like that.
The name of an array is just that, the name of an array.
Whether or not it has anything to do with an "address" depends on the context.
For example, in "sizeof B", the array name B has nothing whatever to do with
an address; it represents the entire CONTENT of the array.



More information about the Comp.lang.c mailing list