PDA

View Full Version : C++ Programming Concerns


codexmax
10-22-2009, 07:19 AM
Hi, I have not been in C++ for not very long and have a couple of questions. Hope you can help clear this up! Thanks!

Consider the operating system's task of communicating the parameter strings to your program. Why is an array of pointers a better data structure than a 2D char array for data such as this?

it career
10-22-2009, 12:20 PM
Because you need to copy the whole data structure when you pass it as argument to a function.

oracleguy
10-22-2009, 04:27 PM
That sounds very much like a homework question.