any data type on array?

hey guys like my tittle above, i wanna ask you about any data type
which may be used in the array, and can you explain it a little? thanks in advance ^^
closed account (zb0S216C)
You can use almost any type of object within an array, with the exception of references.

Here's a link that informs you of arrays in C++: http://www.cplusplus.com/doc/tutorial/arrays/ But here's a quick generalisation:

Arrays are variables/objects that are contiguously placed. Each object/variable is identified by an index. The index is a signed integral value (indices can be negative, but that's undefined behaviour). Indices begin from zero (the first) to n-1 (the last), where n is the length of the array.

Each object in the array is constructed in a default manner.

Wazzak
You may define arrays of any type except of arrays of void(s), references and functions.
Last edited on
Topic archived. No new replies allowed.