Has anyone found a way to pass 2 dimentional arrays to a function? My arrays are stored in code and I need to pass them to a function to display them. Gary Martin
Without testing, the code below should work: // Data int array2d[5][5]; // Function Prototype void func(int ** pArray2d); // Main function void main(void) { func(array2d); } void func(int ** pArray2d) { pArray2d[0][0] = 3; pArray2d[0][1] = 4; // etc... }
Yes it should, but it dosen't. Gary Martin
View all questions in Keil forum