Array's memory is allocated in compile time. Stack uses runtime variable declaration. How is then stack used for array?