Concept
What types of elements can arrays contain?
ComputerScienceOne / Arrays, Collections & Dynamic
"Some languages only allow you to store the same types of elements in an array. For example, an integer array would only be able to store integers, an array of floating-point numbers would only be able to store floating-point numbers. Other languages allow you to create arrays that can hold mixed elements . A mixed array would be able to hold elements of any type, so it could hold integers, floating-point numbers, strings, objects, or even other arrays."
Related Ideas
- How do you create and index arrays in PHP?ComputerScienceOne · Creating Arrays
- How does PHP support and create multidimensional arrays?ComputerScienceOne · Multidimensional Arrays
- How are sets different from computer collections in size and type?Stephen Davies, Ph.D. Version 2.2.2 Through Discrete Mathematics A Cool Brisk Walk · Chapter 1
- How can PHP arrays be sorted?ComputerScienceOne · Searching
- How can you create arrays and collections of strings in Java?ComputerScienceOne · Comparisons
- How do you create and use an array of structures in C?ComputerScienceOne · Arrays of Structures
- How do you create and populate a two-dimensional integer array?ComputerScienceOne · Dynamic Data Structures
- How do Java lists provide dynamic data structures?ComputerScienceOne · Dynamic Data Structures