Question: 4. (5 points) Write a C function to allocate a two-dimensional integer matrix with m rows and n columns. The use of the function is

4. (5 points) Write a C function to allocate a two-dimensional integer matrix with m rows and n columns. The use of the function is shown below. int ** matrix; matrix = allocate (p, q); Your task is write a function that allocates the matrix and returns the appropriate pointer and fill the return type of the function. allocate (int m, int n)f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
