Solved

The Following 4 Lines of C++ Code, Use Strings

Question 10

Multiple Choice

The following 4 lines of C++ code, use strings. The following 4 lines of C++ code, use strings.   Which of the following statements is /are true? A) The C- string is assigned a value correctly, but the string object is not. B) The string object is defined incorrectly because no size is given for it. C) The string object is assigned a value correctly, but the C- string is not. D) The 2 string definitions are correct, but the 2 assignment statements are wrong. E) All 4 lines of code are correct. Which of the following statements is /are true?


A) The C- string is assigned a value correctly, but the string object is not.
B) The string object is defined incorrectly because no size is given for it.
C) The string object is assigned a value correctly, but the C- string is not.
D) The 2 string definitions are correct, but the 2 assignment statements are wrong.
E) All 4 lines of code are correct.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions