where we usually need an array of pointers?
Printable View
where we usually need an array of pointers?
Code:int main(int argc, char *argv[]);
sorry, but i said why it's useful
You don't see a need in that example? You don't see why it's useful to have an array of pointers that way?
No you didn't. Do you want to know where it's useful or where it's needed?
Try here: http://www.catb.org/~esr/faqs/smart-questions.html
When does one use an array? When one wants to store a variable or large number of values.
When does one use a pointer? When one wants to reference an existing variable by address (or store a string).
When does one use an array of pointers? Just combine the above definitions. :)