Bifalgorithm post · Computer science one · Arrays, Collections & Dynamic

What types of elements can arrays contain?

What types of elements can arrays contain? (Computer science one · Arrays, Collections & Dynamic) — "Some languages only allow you to store the same types of e…

Ideas in this flowchart

  • Los arrays pueden restringir los tipos de elementos o permitir tipos mixtos.
  • Algunos lenguajes solo permiten elementos del mismo tipo en un array.
  • Un array de enteros solo puede almacenar enteros.
  • Un array de números de coma flotante solo puede almacenar números de coma flotante.
  • Otros lenguajes permiten crear arrays con elementos de tipos mixtos.
  • Un array mixto puede contener elementos de cualquier tipo.
  • Puede contener enteros, números de coma flotante, cadenas, objetos u otros arrays.
Feed/

What types of elements can arrays contain?

No cover

Channel

Computer science one

1 page

"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."

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.