Size of array issue

my code is giving error when i i am declaring an array of size greater then 100…
like i declared an array arr[1000][1000] and it didnt compile but when i used arr[100][100] is compiled

hello @manthan.joshi.jiit

1000 x 1000 should also work .
if it is not working.then declare it as global array and then try

yes…it worked after global declaration…can i know the reason why it happened

global scope has some higher memory capacity than function scope thats why