- iOS 12 Programming for Beginners
- Craig Clayton
- 197字
- 2021-07-02 15:04:59
Arrays
Arrays are ordered collections of values and can hold any number of items, for example, a list of strings, ints, and floating-point values. Arrays are stored in an ordered list, starting at 0. Let's look at a diagram:

Starting from left to right in the preceding examples, we first have an array that holds a collection of strings. In the second example, we have another array that holds a collection of ints. In our third example, we have an array that holds a collection of mixed data values.
Now, let's review the following diagram, which is a mixed array:

Since this example contains mixed data types, such as strings, ints, and bools, we would have to name this an array type of Any. This means that we can have mixed data types inside our array. Until you are genuinely comfortable with arrays, I would not recommend using mixed data arrays. Try to stick to arrays with the same data type because you will know the exact data type of each element.
An array can hold any data type, but making the array strongly typed means that every element in it must be of the same type.
- 社交網絡對齊
- Cisco OSPF命令與配置手冊
- EDA技術與VHDL編程
- Oracle SOA Suite 11g Performance Tuning Cookbook
- 計算機網絡安全實訓教程(第二版)
- Socket.IO Real-time Web Application Development
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 網絡安全應急響應技術實戰
- IPv6網絡切片:使能千行百業新體驗
- Kong網關:入門、實戰與進階
- OMNeT++與網絡仿真
- 5G+區塊鏈
- 全聯網標識服務
- 小型局域網組建
- 走近奇妙的物聯網