You simply need to initialize the array. It can be made of anything you want. For example,
String names[20] = {These Are Strings} The first box will be These. The second array box will be Are. And the third array box will be Strings where all other 17 boxes will be NULL until you fill them. OR for example,
int numbers[10] = {1,2,3,4,5,6,7,8,9,10} Where box 0-9 will be the numbers 1-10 consecutively.
Arrays are made up of this syntax: %26lt;array type%26gt;%26lt;array name%26gt;[amount of spots in the array]
plants
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment