Assume that a program has the following string object definition: string name;
Which of the following statements correctly assigns a string literal to the string object?
A) name = Jane;
B) name = "Jane";
C) name = 'Jane';
D) name = (Jane) ;
Correct Answer:
Verified
Q8: Escape sequences are always stored internally as
Q12: Floating point constants are normally stored in
Q46: When typing in your source code into
Q47: A variable called "average" should be declared
Q48: What will the value of x be
Q50: The C++ language requires that you give
Q52: When writing long integer literals or long
Q54: In C++ 11, if you want an
Q55: What will the value of x be
Q56: Assume that a program has the following
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents