Plz complete and correct it
@rakesh800650,
You have to do addition operation on arrays itself, you can’t convert int to int as the number of digits can be unto 1000, which will not fit in any data type, and overflow, giving wrong answer.
So how to do it correctly
@rakesh800650,
Take input in arrays, also make a third array for result, now simply iterate from Least significant digits, and perform addition just like we do on a paper.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.