title: Long Multiply C
body: <p>I'm trying to implement the long multiply method (grade school method) in C. I need to write my program in base 2^32. I'm not sure how to even start. I have the algorithm that I want to use here:</p>
  
  <pre><code>for (i = 0; i &lt; n; i++) {
     carry = 0;
     for (j = 0; j &lt; n; j++) {
        product = a[i] * b[j] + result[i + j] + carry;
        result[i + j] = p % base;
        carry = floor(product / base);
     }
     result[i + n] = carry;
  }
  </code></pre>
  
  <p>Any hints are appreciated. I just can't come up with a good idea.</p>