LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: David Newall <davidn@rebel.net.au>
To : Glen Turner <glen.turner@aarnet.edu.au>
Date: Fri, 03 Nov 2000 01:56:21 +1030
Re: C query
Glen Turner wrote:
> C has no arrays. They are simulated using pointers.
That't not quite true. C has arrays; and a reference to an array is
promoted to the address of the first element at the earliest opportunity.
This promotion is why pointers and arrays are so easily interminglable (and
is, imho, a bad thing.)
> int a[10];
> int b[10];
> b = a;
> doesn't copy the contents of the array B into the array A, but instead
does a pointer assignment.
I haven't tried, but I think it doesn't assign the pointer. I think it just
doesn't compile.
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page