Advertisements
Advertisements
Question
Define the following with its construct:
Single Dimensional Array
Answer in Brief
Definition
Solution
- A one-dimensional array is a structure that is represented along the X-axis.
- A single-dimensional array is also called a single subscripted variable because each element of the array is represented by a common variable name along with a single subscript.
- Example: double n[] = new double[20];
shaalaa.com
Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [Page 239]