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

c. String literals are written inside of single quotes.

Computer Science & Information Technology

You might also like to view...

The rule that you have 3 seconds to grab the reader's attention is called the ________ rule. You have additional time to engage the reader and to get your message across

a. 3-2-2 b. 3-30-3 c. 3-3-3 d. 3-2-1

Computer Science & Information Technology

A JTextArea ________.

a. provides a bounding box used for the layout of JTextFields b. wraps lines by default c. provides an area for manipulating multiple lines of text d. provides scrollbars for JTextFields

Computer Science & Information Technology