One of the valid escape sequences used in the C language is

z
N
s E. None of the above

The correct answer is: D. \s

An escape sequence is a sequence of one or more characters that results in a different character being output than would be produced by typing the characters literally. In the C language, the following escape sequences are valid:

  • \n: Newline
  • \t: Tab
  • \b: Backspace
  • \r: Carriage return
  • \f: Form feed
  • \v: Vertical tab
  • \a: Alert
  • \e: Escape
  • \0: Null character
  • \: Backslash
  • \”: Double quote
  • \’: Single quote
  • \?: Question mark
  • \xnn: Octal character with value nn
  • \unnnn: Unicode character with value nnnn
  • \Unnnnnnnnnn: Unicode character with value nnnnnnnnnn

The escape sequence \s is used to represent a space character.

Exit mobile version