Two ways of printing arrays