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...

Which technique does a binary search use to find an element in a list?

A. divide and conquer B. row and column C. first to last D. hunt and peck

Computer Science & Information Technology

The virus prevention industry is a proactive industry.

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

Computer Science & Information Technology