Edit: Sorry. I should post this in a different area. I'm looking for a delete button.... Can't find it yet.
I was asked the following True/False question on a test.
An array declared as an int can contain elements of different primitive types.
True or False?
I hated the question the moment I read it.
For some background, the textbook said the following:
"All values stored in an array have the same type (or are at least compatible)."
The textbook also said:
"A value stored in an array is sometimes called an array element...."
What do you think? Is it true or false?
"An array declared as an int can contain elements of different primitive types."
Is 00001111 "contained in" 0000000000001111 if the array is composed of the latter "type" of data?