How do you determine how the elements of an array can be used in a program?

What will be an ideal response?


Refer to the array declaration to determine how the elements can be used. For example, if the array is declared with the
type int [], then each element of the array is an individual int, and can be used in any way that is appropriate for an int.
If the array is declared with a type that refers to a class, then the array elements are all references to objects of that class and can
be used as such.

Computer Science & Information Technology

You might also like to view...

Express the following IPv6 numbers using double-colon notation:

a. 5355:4821:0000:0000:0000:1234:5678:FEDC b. 0000:0000:0000:1234:5678:FEDC:BA98:7654 c. 1234:5678:ABCD:EF12:0000:0000:1122:3344

Computer Science & Information Technology

A small and medium-sized enterprise (SME) is a legally independent enterprise with _____ employees.

A. up to 500 B. more than 500 but less than 1000 C. more than 1000 D. up to 700

Computer Science & Information Technology

List three of the five methods of administering a questionnaire.

What will be an ideal response?

Computer Science & Information Technology

Modify the FIND capability in Fig. 17.29 to allow the user to scroll through the results of the query in case there is more than one person with the specified last name in the Address Book. Provide an appropriate GUI.

What will be an ideal response?

Computer Science & Information Technology