On Wed, Mar 5, 2008 at 12:41 PM, debasish deka <[EMAIL PROTECTED]> wrote: > Hello, > I am not able to find out if an array is declared in a file as > int arr[10]; //done globally > and in another it is declared extern as : > extern int *a;
The two declarations are different. 'arr' is of type array and 'a' is of type pointer to int. > Now when accessing the value of firstelement of 'a' it is done as a > pointer or an array? Pointer, because that's how it's been declared. > I am not able to find out.... > Can anyone help me out...and how to determine whether it has been accessed > as array or pointer.. The easiest way is by looking at the source code. -- PJH http://shabbleland.myminicity.com
