title: Tell where escaped hexadecimal ends in a string
body: <p>I want to print 10°Celsius with <code>printf</code>function</p>
  
  <p>Normally I would do it like this:</p>
  
  <pre><code>printf("10\xF8Celsius");
  </code></pre>
  
  <p>where \xF8 is the ANSI code for degree sign. The problem is that the compiler take all hexadecimal characters after \x and tries to convert to a character, basically it takes <code>\F8Ce</code> and tries to convert it to a character.</p>
  
  <p>I could write it like: </p>
  
  <pre><code>printf("10\xF8 Celsius"); //see additional space
  </code></pre>
  
  <p>but the question still remains. </p>
  
  <p>How to tell compiler where my hexadecimal code ends? Is it possible?</p>
  
  <p>Note: I used Visual Studio 2015 PRE on a Windows 8.1 to observe this problem (not that this problem is platform specific but just to mention it)</p>