/*
This program will give an immediate segfault because there is not enough stack space to hold 1000x1000x3 integers.
*/
#include <stdio.h>

int main(void){
	//declare a 3d array to hold red, green, and blue components of an image
	//maximum image size is 1000 x 1000
	int image[1000][1000][3];

	//set the whole image to white
	int r, c, i;
	for (r = 0; r < 1000; r++){
		for (c = 0; c < 1000; c++){
			for (i = 0; i < 3; i++){
				image[r][c][i] = 255;
			}	
		}
	}

	return 0;
}
