title: What is the difference between 0x and '\x' in C++?
body: <p>I know that hex-decimal number is usually prefixed with 0x in C/C++ language.
  For example, <code>0x5A</code> means 90 in decimal.
  But I saw an example code using single-quoted character with <code>'\x'</code>.</p>
  
  <pre><code>BYTE outputBuffer[index++] = '\x5A'; // instead of 0x5A
  </code></pre>
  
  <p>Is the meaning of <code>'\x5A'</code> exactly the same as <code>0x5A</code>?</p>
  
  <p>If so, why is there alternative way of hex-decimal notation?</p>