 <p>Use this function in your c program</p> <pre><code>int Add(int a, int b) { while (b) { // carry now contains common set bits of "a" and "b" int carry = a &amp; b; // Sum of bits of "a" and "b" where at least one of the bits is not set a = a ^ b; // Carry is shifted by one so that adding it to "a" gives the required sum b = carry &lt;&lt; 1; } return a; } </code></pre>