Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 3 (Q.No. 31)
The function whose prototype is Item getData(void); returns _____
the address of a structure
a copy of a structure
a pointer to a structure
Answer: Option
No answer description is available. Let's discuss.
3 comments Page 1 of 1.

Nony said:   8 years ago
Yes. The answer is not anything but Item type.

Narasimha Rao said:   8 years ago
It returns an object of Item class.

Muhammad Ishaq said:   8 years ago
The return type of the above function is Item, function would return Item type not nothing. Can anyone clear this point?

In my opinion the answer is not present in the list but nothing means that the function return type is void.

Post your comments here:

Your comments will be displayed after verification.