My Prime Sieve code is showing segmentation fault pls help

Hey @yashratnani6
Mentioned the changes in comments (2 changes) : https://ide.codingblocks.com/s/363058

Max space inside a function u can allocate is close to 10^6
and globally is close to 10^8

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.