Multiple Choice
What is wrong with the following attempted c-string declaration and initialization?
Char str1[5]={'a', 'b', 'c'};
A) There are only 3 values in the braces
B) The single quotes should be double quotes
C) The values do not constitute a c-string
D) nothing
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q49: If we use an out of range
Q50: The base type for a vector can
Q51: When a vector is assigned to another
Q52: Which of the following returns the fourth
Q53: All c-strings must be terminated by _
Q55: The declaration of an STL vector doubleVec
Q56: What is the value of numbers.capacity) after
Q57: If the name of a file to
Q58: Which string function returns the first occurrence
Q59: A string variable and a c-string are