Array: the collection - Allocating array dynamically, Example input output operations with array