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

1. The keyword static is used in a static function declaration in a class but not in the function definition.

2. Vector assignment is well behaved.

1. True
Explanation: The keyword static on an external definition of a static function is not allowed. The error message suggests confusion with a static global function (which we have not studied.)
2. True
Explanation: Vector assignment will do an element by element copy of the vector on the right into the vector on the left. It will manage space as needed, if more on the left if needed. The copy will be a real copy, not an alias. Note that assignment of vectors is as good (or bad) as the assignment of the base type.

Computer Science & Information Technology

You might also like to view...

In a folder window, which of the following window elements displays a list of available base locations?

A) the Path selections list button B) the navigation bar C) the back button D) the Search bar

Computer Science & Information Technology

If an IndexOfAny method is passed an array of characters it:

a) finds the first occurrence of each letter in the string b) searches for the first occurrence of any of the characters in the string c) will search for the first occurrence of the sequence of characters d) generates an error

Computer Science & Information Technology