is a list of related variables. Such lists are common in programming.
active users on a network. Another array might store the current batting averages for a
baseball team.
array for use in your program. First, you must declare a variable that can refer to an array.
138
P a r t I :
T h e C # L a n g u a g e
Here,
type
declares the
element type
of the array. The element type determines the data type
of each element that comprises the array. Notice the square brackets that follow
type.
They
indicate that a one-dimensional array is being declared. The number of elements that the
array will hold is determined by
size.
Do'stlaringiz bilan baham: