Array of size 5000001 is giving segmentation fault in Coding Blocks IDE

Please check the Screenshot I have provided and help me out … Its a question of Prime Sieve but declaring an array of size 5000001 is an issue !

Ya its clear now we can use the array of that size outside the main function :sweat_smile: