|
Re: sizeof question
Yes. You can't "use it on a pointer" because the compiler doesn't know the size of its array in advance. If you need the size of a dynamically allocated array, or a pointer to an array, you need to keep track of the size yourself.
|