PDA

View Full Version : C++ Programming Concerns


codexmax
10-22-2009, 06: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, 11:20 AM
Because you need to copy the whole data structure when you pass it as argument to a function.

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