Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What happens if you declare a very large static local array?
void foo() { double arr[10000000];}
Stack overflow (segmentation fault)
Only first 1000 elements are allocated
Compiler error
This is correct code, but program will consume a lot of RAM due to this array.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!