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
- What dynamic data structures does the C standard library provide?ComputerScienceOne · Dynamic Data Structures
- How do you use and validate a dynamically allocated array?ComputerScienceOne · Dynamic Memory
- How does Java dynamically allocate and manage memory for arrays?ComputerScienceOne · Dynamic Memory
- How can arrays be passed to and returned from methods in Java?ComputerScienceOne · Dynamic Memory
- What other memory allocation functions and pointer cast options does C provide?ComputerScienceOne · Dynamic Memory