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...

Which of the following is a temporary storage for web documents such as HTML pages and downloads?

A) Data cache B) Metadata C) Web cache D) Cookies

Computer Science & Information Technology

Windows SmartScreen is especially useful against spamming. ?____________________

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

Computer Science & Information Technology