manish12
Advanced Member level 3
Array declaration in C++
WHY THIS PROGRAM DONT WORK?
Here if I declare arr[100][100] then it works, but if I increase array size to 1000, it don't?
#include<iostream>
using namespace std;
int main()
{
int i,j;
double arr[1000][1000];
for (i=1;i<=1000;i++)
for(j=1;j<=1000;j++)
cout<<a[j]<<endl;
return 0;
}
WHY THIS PROGRAM DONT WORK?
Here if I declare arr[100][100] then it works, but if I increase array size to 1000, it don't?
#include<iostream>
using namespace std;
int main()
{
int i,j;
double arr[1000][1000];
for (i=1;i<=1000;i++)
for(j=1;j<=1000;j++)
cout<<a[j]<<endl;
return 0;
}