Hi,
I have to use a 2D array with diff length. one is temp1[10][33] & other is temp2[10][97] & have to pass it to same function depending upon condition.
Now when I pass array by reference in C & made a function in C, it ask for constant 2nd dimension. Like if I have to use temp1 array then in function which is to be called I have to tell that array which I am going to pass has 2nd dimension 33. Due to which I am not able to use it for temp2 array.
Any suggestion how to do it.
I have to use a 2D array with diff length. one is temp1[10][33] & other is temp2[10][97] & have to pass it to same function depending upon condition.
Now when I pass array by reference in C & made a function in C, it ask for constant 2nd dimension. Like if I have to use temp1 array then in function which is to be called I have to tell that array which I am going to pass has 2nd dimension 33. Due to which I am not able to use it for temp2 array.
Any suggestion how to do it.