What is the solution to this problem?

A grey-level image is stored as an array of pixels, with an integer values for each pixel representing its grey level.

Consider an image of N rows and M columns in a 2-D array A[ ][ ].

Write a function to receive such array and return a pointer to a 2-D dynamic array containing the lower right quadrant of the image.

Consider N and M to be global constants and to be even integers.
a for loop with a memcpy.
Topic archived. No new replies allowed.