where we usually need an array of pointers?
where we usually need an array of pointers?
proud to be from aui www.aui.ma and also a great elton john's fan
sorry, but i said why it's useful
proud to be from aui www.aui.ma and also a great elton john's fan
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
If you understand what you're doing, you're not learning anything.
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.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.