Distinguish the use of the square brackets [] in a definition of an array and their use for access to some indexed variable of the array.
What will be an ideal response?
In the definition of an array, for example, int array[10]; the [] are
used to define the array, the number between the brackets specifies the declared size,
that is, it specifies how many indexed variables are being defined. This could be any
number.
In the access to an indexed variable, for example, array[5] = 14; the number
between the brackets specifies which of the indexed variables is being accessed. This
must be between 0 and one less than the declared size of the array. Technically, the
[] are called the subscripting operator.
You might also like to view...
A(n) ____ gradient style shades from the starting point to the ending point in a circular pattern.
a. Normal b. Radial c. Angle d. Circular
In Remote Assistance you can help someone who has invited you
Indicate whether the statement is true or false
Clicking the ________ button accepts all tracked changes and rejects any changes that were not accepted
Fill in the blank(s) with correct word
The Ascending and Descending buttons are located in the ________ group on the HOME tab
Fill in the blank(s) with correct word