title: How are backslash escape sequences implemented in compilers?
body: <p>I just wanted to know how backslash escape sequences are implemented in compilers?
  If we write "\n" in a string, how does a compiler come to replace it with a new line character? How does a compiler come to replace "\b" with a backspace character?</p>
  
  <p>I ask because I wrote the code:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  main()
  {
      printf("Hello \c");
  }
  </code></pre>
  
  <p>The output was:</p>
  
  <p><pre>
  Hello 
  Exited: ExitFailure 7 
  </pre></p>
  
  <p>I ran it in codepad, I was going through KnR book question number 1.2.</p>
  
  <p>Thanks in Advance</p>