title: C: Multiple backslashes used in char
body: <p>I have the following <code>C</code> code but I don't understand it</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main(void)
  {
      char c = '\\\\';
      printf("%c\n", c);
  }
  </code></pre>
  
  <p>I have created a <code>char</code> with two characters in it. I get a compiler warning which says truncating from <code>int</code> to <code>char</code>. How is <code>\\\\</code> an <code>int</code>? Isn't it a string?</p>
  
  <p>I was looking at the syntax of acceptable character literals when I run into this problem.</p>
  
  <p>These are the escape sequences I have found online:</p>
  
  <pre><code>newline
  \n
  backslash
  \\
  horizontal tab
  \t
  question mark
  ? or \?
  vertical tab
  \v
  single quote
  \'
  backspace
  \b
  double quote
  \"
  carriage return
  \r
  the null character
  \0
  form feed
  \f
  octal
  \ooo
  alert (bell)
  \a
  hexadecimal
  \xhhh
  </code></pre>