Re: Passing address of multidimentional array
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 3 Jun 2008 08:52:10 -0400
"goodTweetieBird" <goodTweetieBird@xxxxxxxxxxx> wrote in message
news:b27993ba-2d39-40c6-b56d-7c3dae869bc0@xxxxxxxxxxxxxxxxxxxxxxxxxxx
int arr[20][30];
main(int argc, char** argv)
{
int rval;
...
rval = functionInOtherFile(arr);
}
//Other file here.
int functionInOtherFile( int* arr[}[])
You have to specify all but the leftmost dimension in the function
signature:
int functionInOtherFile( int arr[][30]);
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Passing address of multidimentional array
- From: goodTweetieBird
- Passing address of multidimentional array
- Prev by Date: Re: Passing address of multidimentional array
- Next by Date: Re: Passing address of multidimentional array
- Previous by thread: Re: Passing address of multidimentional array
- Next by thread: Re: Passing address of multidimentional array
- Index(es):
Relevant Pages
|