• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

escape sequence

 
shubhra chauhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following are valid escape sequences ?



Options

Select 4 correct options.

1:
2:
3: f
4:
5: x

answer is 1,2,3,4.
i don't know how. they eplained backslash by /* u005c: backslash */ which is denoted by blank space here. Is it true?
 
Chatura Dilan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your post is not clear, escape sequences are

\n newline


\t tab


\b backspace


\f form feed


\r return


\" " (double quote)


\' ' (single quote)


\\
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic