[A89] Re: c trouble


[Prev][Next][Index][Thread]

[A89] Re: c trouble



> Yes, it looks like an identifier conflict. But size isn't an issue, as
> char foo[][] is the same as char *foo[]

Yes, mostly. It's not the same, but the compiler will happily take the
address of an array and treat it as a pointer to a single item, and vice
versa.

> or char **foo; it's a pointer to an array of pointers to characters.

No. A two-dimensional array is a single block of memory.

> If the size of a pointer isn't known, delete your compiler.

LOL!

-- 
Sebastian Reichelt



Follow-Ups: References: