Zeus Learning Pvt. Ltd interview question

How is memory allocated in an array?