Bonkers

Peter Corlett abuse at cabal.org.uk
Fri May 11 12:37:57 BST 2007


On Fri, May 11, 2007 at 12:14:05PM +0100, Jon Nangle wrote:
[...]
> How do you pass a char[1024] in C?

By value rather than by reference. It's fairly rare in C, but common enough
in C++.

> Surely arrays will always decay into pointers anyway.

array == &array[0] as a convenience, but that doesn't mean that pointers and
arrays are always interchangable.



More information about the london.pm mailing list