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

1) An array subscript should normally be of data type float.
2) If there are fewer initializers in an initializer list than the number of elements in the array,
the remaining elements are initialized to the last value in the initializer list.
3) It’s an error if an initializer list has more initializers than there are elements in the array.
4) The address operator & can be applied only to constants and to expressions.
5) A pointer that is declared to be of type void* can be dereferenced.


1. False. An array subscript should be an integer or an integer expression.
2.False. The remaining elements are initialized to zero.
3. True.
4. False. The operand of the address operator must be an lvalue; the address operator
cannot be applied to literals or to expressions that result in temporary values.
5. False. A pointer to void cannot be dereferenced. Such a pointer does not have a type
that enables the compiler to determine the type of the data and the number of bytes
of memory to which the pointer points.

Computer Science & Information Technology

You might also like to view...

MC The characters %21.2f indicate a floating-point value will be printed with how many positions to the left of the decimal point?

a) 21. b) 18. c) 2. d) 19.

Computer Science & Information Technology

Which of the following statements is false?

a. You can use *= to multiply a sequence—that is, append a sequence to itself multiple times. b. After the following snippet, numbers contains two copies of the original list’s contents: numbers *= 2 c. The following code searches the updated list for the value 5 starting from in-dex 7 and continuing through the end of the list: numbers.index(5, 7) d. All of the above statements are true.

Computer Science & Information Technology

To guard against data loss, it is good practice to have the same record in more than one table

Indicate whether the statement is true or false

Computer Science & Information Technology

A laptop docking installation requires a tower or a minitower

Indicate whether the statement is true or false

Computer Science & Information Technology