Hi Ankit,
Your OS probably does not provide that many megabytes of STACK space.
Allocate your enormous 2-dimensional array on the HEAP or in the BSS or in the DATA areas instead.
Or check out if your can adjust the size of your STACK to around 32 MB. That might be a linker option. Depends on your OS.
HTH, --Eljay