Sam Lawrance wrote:
> To pick a slight nit, C has references as well.
C does not have pass-by-reference like C++ does except via
pointers, but then, in the called function they are treated
as pointers, not like C++ references.
If you mean something like this:
int a = 3 ;
int *b = &a ;
then thats not a reference either. The ampersand in above is the
"address of" operator, which generates a pointer, not a reference.
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
C++ : an octopus made by nailing extra legs onto a dog.
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders