What would be the best choice of data type for a person’s address?

a) int
b) float
c) char
d) string

d) string

Computer Science & Information Technology

You might also like to view...

Returning references to non-const, private data:

a. Allows private functions to be modified. b. Is only dangerous if the binary scope resolution operator (::) is used in the function prototype. c. Allows private member variables to be modified, thus “breaking encapsulation.” d. Results in a compiler error.

Computer Science & Information Technology

Inside a function definition for a member function of an object with data member x, which of the following is not equivalent to this->x:

a. *this.x b. (*this).x c. x d. None of the above are equivalent.

Computer Science & Information Technology