Advertisement

sending a 2d Array to a funktion? help

Started by February 14, 2003 02:10 AM
10 comments, last by kappa the imp 21 years, 9 months ago
Okay, thanks for clarifying that. Would this be an "acceptable" way to pass a "2D" array to a function, as opposed to trying to pass an actual 2D array?
Peon
quote: Original post by Peon
Okay, thanks for clarifying that. Would this be an "acceptable" way to pass a "2D" array to a function, as opposed to trying to pass an actual 2D array?


Yes, but technically it won''t be passing a 2d array. It will be passing a 1d array with the same number of elements. To do this, the array should be 1 dimensional from the declaration. What I mean is, don''t declare a 2d array, and then use that method to pass it and access it.

This topic is closed to new replies.

Advertisement