"Pointers" in topic may be "Pointer's".
Hi all.
There is a two dimensional A[5][6] array declared and this is wanted from me :
. Pass the array A and its dimensions (number of rows and
columns) to the FUNCTON1 as arguments.
Number of rows and columns should be passed as POINTER
arguments.
And this is how i defined function and passed array into it :
Code:
void func1 (int *a1Ptr, int a1row, int a1column) // The function
func1 (*A, 5, 6); // This is how I pass array into it
Program works and everything is ok.
So my question is, did i do it right as it wanted ? If not, then how to do it like in the question.
Thanks in advance.