Hi all,
I've got this 2-D array to store unsigned character image data.
Image[3000][3000];
I'd like to allocate memory to it but I've never actually used malloc() before, and it seems now's the best time to try!
- In the first place since I'm allocating memory, should I enter values for the total number of elements? [3000][3000] ?
- How should I set the l-value in the malloc declaration?
...... = malloc(sizeof(width*height));
Cheers all
Storm