J
Jonathan Underwood
Hi
I have a 2 dimensional array allocated as a contiguous chunk of
memory, as described in Question 6.16 in the FAQ (i.e. in the manner
of array 2 on the page http://www.eskimo.com/~scs/C-faq/q6.16.html).
I have a function declared as func(..., array[],...) and I wish to
pass my 2D array to that function. As I understand it, this should be
allowable since the 2D array is contiguous in memory, and if i
therefore call it as func(..., my2darray[0], ...) the data types
should match (double * in both cases). Is this the correct way to do
this?
Many thanks
Jonathan.
I have a 2 dimensional array allocated as a contiguous chunk of
memory, as described in Question 6.16 in the FAQ (i.e. in the manner
of array 2 on the page http://www.eskimo.com/~scs/C-faq/q6.16.html).
I have a function declared as func(..., array[],...) and I wish to
pass my 2D array to that function. As I understand it, this should be
allowable since the 2D array is contiguous in memory, and if i
therefore call it as func(..., my2darray[0], ...) the data types
should match (double * in both cases). Is this the correct way to do
this?
Many thanks
Jonathan.