Help on memory allocation

Can someone tell me what’s the largest size of array I can allocate in the main function?
Thanks in advance

10^7 , also depends on compiler.