How do you reference the elements in an array?

What will be an ideal response?

Each array element is differentiated from the others with a unique subscript, also called an index, which is a number that indicates the position of a particular item within an array. All array elements have the same group name, but each individual element also has a unique subscript indicating how far away it is from the first element. For example, a five-element array uses subscripts 0 through 4, and a ten-element array uses subscripts 0 through 9. In all languages, subscript values must be sequential integers (whole numbers).  To use an array element, you place its subscript within square brackets or parentheses (depending on the programming language) after the group name.

Computer Science & Information Technology

You might also like to view...

A macro group that assigns keys on the keyboard to execute each submacro is a(n) ________ macro

A) Data B) Embedded C) AutoExec D) AutoKeys

Computer Science & Information Technology

Which of the following image formats is NOT typically compressed (resulting in extremely large file sizes)?

A) .JPEG B) .BMP C) .PNG D) .GIF

Computer Science & Information Technology