Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Data Type vs Data Structure

Should array in Swift be considered as a data type or data structure? How is it considered in general?

2 Answers

William Li
PLUS
William Li
Courses Plus Student 26,867 Points

It's both, In Computer Science, Array is considered composite data type, as well as Data Structure for storing a series of values.

Thanks William. As i understand in Swift, It's abstracted. End user doesn't know and need to be aware of the nitty-gritty's and seems like it's more a type than a data structure. But, in languages like C, it's more a data structure.