What is the solution to this problem?

Dec 10, 2020 at 4:48pm
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.
Dec 10, 2020 at 5:03pm
a for loop with a memcpy.
Topic archived. No new replies allowed.