8. What is the error in the following Big member function of the bigNumber object? (There is one error.) bigNumber bigNumber::addBig(bigNumber num2) { bigNumber answer; int i, carry; for (i = 0; i


8. What is the error in the following Big member function of the bigNumber object? (There is one error.)<br>bigNumber bigNumber::addBig(bigNumber num2)<br>{<br>bigNumber answer;<br>int i, carry;<br>for (i = 0; i <= MAX_DIGITS - 1; i++)<br>{<br>answer.num[i] = num[i] + num2.num[i];<br>}<br>for (i = 0; i <= MAX_DIGITS -<br>1; i++)<br>ones= answer.num[i] % 10;<br>carry=answer.num[i] / 10;<br>answer.num[i+ 1] += carry;<br>answer.num[i] = ones;<br>}<br>return answer;<br>}<br>

Extracted text: 8. What is the error in the following Big member function of the bigNumber object? (There is one error.) bigNumber bigNumber::addBig(bigNumber num2) { bigNumber answer; int i, carry; for (i = 0; i <= max_digits="" -="" 1;="" i++)="" {="" answer.num[i]="num[i]" +="" num2.num[i];="" }="" for="" (i="0;" i=""><= max_digits="" -="" 1;="" i++)="" ones="answer.num[i]" %="" 10;="" carry="answer.num[i]" 10;="" answer.num[i+="" 1]="" +="carry;" answer.num[i]="ones;" }="" return="" answer;="">

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here