• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Working with Arrays > Declaring an Array Variable

Declaring an Array Variable

Because an array is a type of variable, you must declare it and specify a data type, as you must any other variable. When declaring an array, specify the array’s upper and lower bounds. In other words, let the array know the smallest and largest values it can store.

To declare an array variable, use the following syntax:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint