Chapter 7: Problem 13
When writing a function that accepts a two-dimensional array as an argument, which size declarator must you provide in the parameter for the array?
Short Answer
Expert verified
Answer: To declare a function that accepts a two-dimensional array as an argument, you must specify the array type and dimensions in the parameter, providing the number of columns as the size declarator. For example, in the function prototype, use the following format: void displayArray(int arr[][4], int rows); The size declarator (number of columns) must also be provided in the function definition.