Ask Question
10 October, 12:04

Every element in an array always has the same data type. Necessary?

+5
Answers (1)
  1. 10 October, 15:11
    0
    False.

    Explanation:

    Every element in the array is always have same data type.

    Array is the collection of items of same data type stored in contiguous memory location.

    So as the definition suggests that array elements always have same data type.

    But it is not necessary there are some languages that can allow array elements to be different types such as jа vascript, python. But traditional languages such as C, C++, Java does not allow this.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Every element in an array always has the same data type. Necessary? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers