Darren New <dne### [at] sanrrcom> wrote:
> int* table = malloc(10*sizeof(int));
> creates an anonymous array, then sets "table" as a pointer to the start of
> it. So you can have heap-allocated arrays, you just can't give them names. :-)
The other difference is that there's no way of retrieving the size of that
"array".
--
- Warp
Post a reply to this message
|