Why don't your forget about the image for a little while and focus on just arrays ? Once you understand how it works you can integrate your knowledge into the image project
Maybe you want to watch this tutorial: Dynamically allocated multi-dimensional arrays in C - YouTubeCode:#include <stdio.h> #define ROWS 4 #define COLS 4 int main() { int **array = NULL; // create and initialize your array // display array // save to file // read array // display array // delete array }