Simple problem: My code blocks of able to compile the code below and worked well:
int a[2000000];
My code blocks of able to compile the code below But my program crashed immediately after:
int a[2000000];
int b[2000000];
1) What is the reason and why? (my ram 16 GB !! and this just took 0.3MB so whats the problem?)
2) How to fix or use an alternate way? (but i need to create so much of arrays)
3) Is there way to increase memory of an array?
Related problem(i think so):
My code blocks of able to compile the code below and worked well:
unsigned long int a=100000000000;
My code blocks of able to compile the code below But my program crashed immediately after i enter the same number(100000000000):
unsigned long int a;
cin>>a;
What to do?