C Coding Question

karl at haddock karl at haddock
Sat Aug 23 03:46:00 AEST 1986

>["type *" and "type []"] are IDENTICAL to virtually every C compiler ...
>Arrays in C are merely special cases of pointers.

You are wrong, but you've got a lot of company.

I almost wish the language had kept arrays and pointers completely separate,
requiring "&a[0]" to change an array into a pointer, and "*(p+n)" to index
from a pointer.  Or maybe "p@[n]", where "@" is some postfix operator that
converts a pointer into an array of unknown size.

Karl W. Z. Heuer (ihnp4!ima!haddock!karl), The Walking Lint

More information about the Comp.lang.c mailing list