The function whose prototype is Item getData(void); returns _____ A. the address of a structure B. a copy of a structure C. a pointer to a structure D. nothing

the address of a structure
a copy of a structure
nothing

The correct answer is: C. a pointer to a structure

A pointer is a variable that stores the address of another variable.

In this case, the function getData() returns a pointer to a structure. This means that the caller of the function can use the pointer to access the data in the structure.

The other options are incorrect because:

  • Option A is incorrect because the function does not return the address of the structure itself, but rather a pointer to the structure.
  • Option B is incorrect because the function does not return a copy of the structure, but rather a pointer to the structure.
  • Option D is incorrect because the function does return something, namely a pointer to the structure.