94.6k views
1 vote
True or False? A literal string can continue onto more than one line, as long as it is enclosed in double quotes.

1 Answer

3 votes

Answer: False

Explanation: A string literal can only continue when:

-the new line character is included between the double quotes, then it is included as part of the string.

-escaping the newline character with the backslash will cause it to be ignored.

-two strings appear adjacent to one another, C will automatically concatenate them into a single string.

User Sayan Bhattacharya
by
6.4k points