Ask Question
3 May, 12:16

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

+5
Answers (1)
  1. 3 May, 12:42
    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?
Find an answer to your question ✅ “Every element in an array always has the same data type. Necessary? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers