Introduction To Programming We have to process lots of strings in programs a lot too.
"This is a string"
"This isn't a number"
'This is a string too'
'The cow says, "moo"'
"Fred"
"Bert"
"Ernie"
\b |
Backspace |
\t |
tab |
\n |
newline |
\v |
vertical tab |
\f |
form feed |
\r |
Carriage return |
\\ |
Literal backslash |
\" |
Double Quote |
\' |
Single Quote |
length function..length" function
The mystery variable is 16
Here's the working demo of the above code: Demo: String Variables