The following 4 lines of C++ code, use strings.

```
string firstName; // Define a string object
char lastName[7]; // Define a C-string
firstName = "Abraham"; // Assign a value to the string object
lastName = "Lincoln"; // Assign a value to the C-string

```


C) The string object is assigned a value correctly, but the C-string is not.

Computer Science & Information Technology

You might also like to view...

The statement cin >> *p;

A) stores the keyboard input into the variable p. B) stores the keyboard input into the pointer called p. C) is illegal in C++. D) stores the keyboard input into the variable pointed to by p. E) None of the above

Computer Science & Information Technology

Why was the Internet Society created?

What will be an ideal response?

Computer Science & Information Technology

An example of a positive attitude is when you do not take time to listen to the entire customer problem

Indicate whether the statement is true or false

Computer Science & Information Technology

Which statement is a true when adding a VM to a Resource Pool?

a. The VM share value (%Shares) adjusts to the Resource Pool b. The VM share value (%Shares) remains unchanged. c. The VM limit changes d. the VM reservation changes

Computer Science & Information Technology