explain single dimensional array and double dimentional array
Answers
One-dimensional arrays. A one-dimensional array (or single dimension array) is a type of linear array. Accessing its elements involves a single subscript which can either represent a row or column index. ... In the given example the array can contain 10 elements of any value available to the int type
An array is a collection of variables that are of similar data types and are referred by a common name. A specific element in an array is accessed by a particular index of that array. Arrays in Java work differently as compared to C++. The main topic of our discussion is the difference between One-dimension and Two-Dimension array. A one-dimensional array is a list of variables with the same datatype, whereas the two-Dimensional array is ‘array of arrays’ having similar data types. C++ do not have bound checking on arrays whereas, Java have strict bound checking on arrays