You have the following macro statements:
#define WIDTH 5
#define HEIGHT 3
You wish to copy a multidimensional array called anArray declared as follows:
int anArray[HEIGHT][WIDTH];
Which statement should you use to declare the single dimensional array called copied that will hold all of the copied values from anArray?
A. |
int copied[HEIGHT * WIDTH]; |
B. |
int copied[HEIGHT+WIDTH]; |
C. |
int copied[]; |
D. |
int copied[WIDTH];
|