define an array and string constant using simple programme
Answers
Answered by
2
An array is a sequential collection of variables of same data type which can be accessed using an integer as index, that generally starts from 0. It stores data elements in a continuous memory location. Each element can be individually referenced with its respective index.
1-Dimensional array: It is a linear array that stores elements in a sequential order. Let us try to demonstrate this with an example: Let us say we have to store integers 2, 3, 5, 4, 6, 7. We can store it in an array of integer data type.
❥ the above is the answer of your question
❥ hope that's helps you
Answered by
0
Explanation:
It stores data elements in a continuous memory location. Each element can be individually referenced with its respective index. 1-Dimensional array: It is a linear array that stores elements in a sequential order.
Similar questions