Answer the following statements true (T) or false (F)
1. A local class and a nested class are the same thing.
2. If v is a vector and i is an int variable, then in the following the value of i can be any nonnegative int value:
v[i] = i;
3. It is valid to initialize member variables in a class on the same line in which the variable is declared. For example, the following sets xx to 1000:
```
class A
{
public:
A(){}
private:
int xx = 1000;
};
```
4. If we use an out of range index with a vector, there be an error message from the compiler.
1. False
A local class has its definition in a block, whereas a nested class has its definition within another class.
2. False
3. True.
However, this feature is only available in C++11 or higher.
4. False.
The Standard Library vector was designed for speed, not safety. There is no range checking done for indexing. As we shall see, there is a range checked member function for the string and vector.
You might also like to view...
On switch SW4, turn on only the interfaces where there are active connections.
What will be an ideal response?
The large red rectangle featured in the accompanying figure defines the ____________________ area.
Fill in the blank(s) with the appropriate word(s).
Office Help can increase a user's proficiency and save you time from seeking outside assistance
Indicate whether the statement is true or false
The Command Button Wizard allows you to create buttons that control Record Navigation
Indicate whether the statement is true or false