🔁ESCAPE SEQUENCE


It is a method to print those characters which cannot be printed directly.
  • Back slash ( \ ) - used for escape sequence.  
  • Forward slash ( / )- used for division operator.
  1. NEW LINE\n (printing will be in new line)
  2. TAB- \t (new word will be printed after 4 spaces)
  3. BACKSPACE- \b (previous word will be deleted)
  4. BELL CHARACTER- \a (creates a beep sound but could hear in old pc's)
  5. "- \" (when we want output like - hello"world)
  6. \ - \\ ( when we want output like - male/female)


Popular posts from this blog