title: what happens when i mix signed and unsigned types ?
body: <p>I'm studying the C++ language and i have some doubt about type conversion, could you explain me what happens in an expression like this : </p>
  
  <pre><code>unsigned int u = 10; 
  int a = -42; 
  std::cout &lt;&lt; u - a &lt;&lt; std::endl;
  </code></pre>
  
  <p>Here i know that the result will be 52 if i apply the rules when we have two mathematical operators.But i wonder what happens when the compiler to convert a to an unsigned value creates a temporary of unsigned type, what happens after ? The expression now should be 10 -4294967254.</p>