Ask Question

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

+1
Answers (1)
  1. 29 April, 03:39
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers