Why does the maximum array varies from local declaration and global declaration?
I have read in some blog that maximum size of array that we can declare would be 10^6 in case of local declaration and between 10^7 to 2*10^8 in case of global declaration. What is the reason for this?