Which of the following is false for pointer-based strings?
A) A string may include letters, digits and various special characters (i.e., +, -, *) .
B) A string in C++ is an array of characters ending in the null character ('\0') .
C) String literals are written inside of single quotes.
D) A string may be assigned in a declaration to either a character array or a variable of type char *.
Correct Answer:
Verified
Q22: Given that k is an integer array
Q23: A string array:
A) Stores an actual string
Q24: getline(superstring, 30); is equivalent to which of
Q25: A string array is commonly used for:
A)
Q26: Which of the following can have a
Q27: Which of the following is not true
Q29: Assuming that t is an array and
Q30: (*max)(num1, num2, num3);:
A) Is the header for
Q31: Comparing pointers and performing pointer arithmetic on
Q32: A pointer can not be assigned to:
A)
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