What is an array in programming?

  • A data structure that stores elements of different data types in a linear, contiguous memory location.
  • A function that returns the length of a string.
  • A loop used for repetitive tasks in programming.
  • A sorting algorithm based on divide and conquer.
An array in programming is a data structure that stores elements of the same data type in a contiguous memory location. It allows for efficient storage and retrieval of elements using an index.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *