+ 5

Why is arry used

Arrays are difficult to understand

16th Jun 2018, 6:58 AM
Noob
Noob - avatar
7 Respostas
+ 8
An array can shorten the code that you need to write. And more specifically the above two answers are correct
16th Jun 2018, 9:00 AM
Swapnil
Swapnil - avatar
+ 5
Arrays are useful for containing multiple values of the same type in a list that can be traversed forward and backward. The values in the array are stored one after another in the computer's memory, and are thus efficient for storing lists if all of the values are of the same type (i.e. char, int, float, etc.) Static arrays are arrays that have a set number of elements. Take the following declaration: char myname[64]; This sets up a variable called "myname" with 64 values of type "char". Or this: int seconds[10]; http://qa.answers.com/mobile/Q/Why_arrays_are_using
16th Jun 2018, 7:07 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 5
I think: Array is used to store a collection of MULTIPLE values of SAME Data Type in an single Variable. ARRAY IS AN VARIABLE OF VARIABLES
17th Jun 2018, 9:52 AM
Biel Blue
Biel Blue - avatar
+ 3
If you're struggling to understand arrays, start with one dimensional arrays. Think of them as a single column in a spreadsheet or a table with one column. The column contains values in each row of the same type. Then just remember the first row is 0. The beauty with using them, is you can pass around the whole column or iterate through each row by referencing the one variable. If you tried the same without arrays, you would have to declare a variable for each row in your column.
17th Jun 2018, 12:08 PM
Duncan
Duncan - avatar
+ 2
Array is used to store a collection of diiferent data type in a single string .
16th Jun 2018, 8:02 AM
Prakher Srivastava
Prakher Srivastava - avatar
+ 2
Arrays can be used to store a list of data which is better than declaring a lot of variables for only one task. You can also use ArrayList Class of Java in Java Programming as well as in Kotlin. It provides a lot of features that can be understood by anyone easily. Good Luck For Your Learning!☺
17th Jun 2018, 12:45 PM
Sujal Kumar
Sujal Kumar - avatar