Originally Posted by
laserlight
If the array has automatic storage duration, it typically will be allocated storage on the stack, which tends to be limited, so declare the array to have static or allocated storage duration instead. To declare the array as having static storage duration, you would either declare it at file scope (in which case it becomes a global variable), or declare it static (in which case it can have local scope, though it retains some maintenance disavantage in being static). For allocated storage duration, you would use malloc and free and do manual memory management.