title: Output of dividing int64_t by uint64_t
body: <p>Can someone help me understand the reason behind output being 542551296275775048 even though I am assigning the final output to a int64_t?</p>
  
  <p>I was expecting the output as -9799999</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdint.h&gt;
  
  using namespace std;
  
  int main()
  {
      int64_t a = -333199966; 
      uint64_t b = 34;
  
      int64_t temp = a/b;
  
      cout &lt;&lt; temp &lt;&lt; endl;
  }
  
  Output : 542551296275775048
  </code></pre>