Showing posts with label String Literals. Show all posts
Showing posts with label String Literals. Show all posts

Friday, 24 February 2017

String Literals

String Literals

String literals or constants are enclosed in double quotes "". A string contains
characters that are similar to character literals: plain characters, escape
sequences, and universal characters.

You can break a long line into multiple lines using string literals and separating
them using whitespaces.
Here are some examples of string literals. All the three forms are identical
strings.


"hello, dear"
"hello, \
dear"
"hello, " "d" "ear"