Hi all
How to pass a 3-D array from the main program and access it in the
subroutine.
for example
void main()
{
.....
float a_slope_n_river_width[250][200][5];
....
/*read values from file*/
....
fn_populate_slope_file ( v_x_pixels, v_y_pixels,
a_slope_n_river_width, v_pixel_length);
...
...
}
void fn_populate_slope_file ( int v_x_pixels, int v_y_pixels, float
a_slope_n_river_width[v_y_pixels][v_x_pixels][5], float v_pixel_length
) // Generate slope array
{
/* Here I want to access the element of three dimensional array */
}
This piece of code is not working ... Please let me know the error
Thanks in advance
Regards
Nitin