I am creating an array of 1000*1000*3 = 3000000 bytes but when i execute the program it crashes, but if i create the same array but in small dimensions it works perfectly, this is the code:
#include <stdio.h>
#include <stdlib.h>
typedef char color[3];
struct image {
color picture[1000][1000];
};
int main()
struct image image1;
system("pause");
return 0;
}
The struct has not really a big size, but it crashes anyways.
Any idea of what is going on?.
ps: i have 2GB of ram.

New Topic/Question
Reply



MultiQuote





|