How are arrays stored on the stack?

arrays, c, heap-memory, stack-memory

Solution

Yes, the whole array is pushed on stack.

See the following answer on how variables are allocated on the stack:

https://stackoverflow.com/a/18479996/1814023

Problem

I know how arrays stored on the heap. But how are arrays stored on the stack? Is the complete array pushed to the stack?

Original source