+ 2
what is the advantage of array
exam based qn
11 Réponses
+ 2
It allows you to group data of the same type.
+ 1
we can store more than 1 data in same variable
+ 1
we can store multiple data in one variable...thats its advantage.there are multiple types or array available, you can use those.
0
next advantage
0
u cn access any element by their index value...
0
I love arrays, they let you store more data hence management of time
0
you can group data together, and access either the entire group of data, or individual assets in the group. For example, you have variables indicating player stats, and you just got a chestplate that adds +2 to all stats, you can either add +2 to each individual stat manually, or all of the stats can be put into an array, and a loop can do it.
0
Most of the time you can work around arrays, but they're very convenient
0
arrays = pointers.. you can also reduce the speed of a pc by increase the required memory
0
int a [5]
is wrong ,most compilers don't show error but is it wrong
the only way you can declare an array is with malloc calloc or sth like this .
- 1
they are pointers!!!!!!
int a [5] is the same as int *(a + 5)
true thing !!!