News

There are 5 rows in this array that can in turn contain 5 string arrays of different lengths. Let’s now see how we can declare 5 arrays in the array named str, each of different lengths.
In the above example, the integer array named rentedArray will have 10 elements; i.e., you can store 10 integer values in the array. You can also write the preceding code as shown below.