195k views
3 votes
A. true

b. false: a one-dimensional array can only store elements of a single data type, but a two-dimensional array can hold data of two different data types.

User Warmcat
by
8.3k points

1 Answer

4 votes
The answer to this question would be false. Both one and two dimensional arrays can only hold data of a single data type. For example, a two dimensional array would never be able to contain some data of type int and some data of type String.

I hope this helps.
User Ruffrey
by
7.7k points

No related questions found