How do you declare a function with a 2-d array. Borland keeps giving me errors when i try to do it. Can someone show me the correct way.
How do you declare a function with a 2-d array. Borland keeps giving me errors when i try to do it. Can someone show me the correct way.
>How do you declare a function with a 2-d array
Huh? You mean you want to declare a 2D array inside a function?
I'm pretty sure that you are thinking of something else, if you could elaborate I'll be of more help.Code:void function ( void ) { int array[ROW][COL]; }
-Prelude
My best code is written with the delete key.
I figured it out myself. Thanks for your help.
void arraydisplay(int array[][max],int row, int col){
//
}
Oh, you wanted to pass a two dimensional array to a function. :P
You might want to consider wording your question more carefully next time so as to not confuse us. I do that well enough by myself
-Prelude
My best code is written with the delete key.