Which of the following statements about creating arrays and initializing their elements is false?

a. The new keyword should be used to create an array.
b. When an array is created with operator new, the number of elements must be placed in square brackets following the type of element being stored.
c. The elements of an array of integers have a value of null before they are initialized.
d. A for loop is commonly used to set the values of the elements of an array.

c. The elements of an array of integers have a value of null before they are initialized. They actially have the value 0—the default for type int.

Computer Science & Information Technology

You might also like to view...

A technician needs to make several patch cables. Which of the following tools would the technician use to attach the RJ-45 ends to the cables?

A. Loopback plug B. Punch down C. Crimpers D. Cable tester

Computer Science & Information Technology

Software developers have created filtering software that blocks children from viewing inappropriate or harmful Internet sites at home or school, but to date developers have been unsuccessful in creating a similar software for use in the workplace.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology