Xcode – How to calculate number of rows of 2D char array inside a function which takes such an input?
Here is the function: void printArray(const char arr[][3], int rows, int cols) { // rows == 3 && cols == 3 is currently a placeholder. I have to confirm whether these are // actually correct. if (rows == 3 &&…