+2

How to add and subtract 2 numbers using string?

One of the numbers is so huge that it cannot be stored in any data type

c

8/18/2019 2:08:01 PM

Awsaf Zidane

2 Answers

New Answer

+5

One option is to take one digit at a time from both numbers and subtracting then with the borrow. Look here for addition examples: https://www.sololearn.com/learn/13549/?ref=app

+4

Awsaf Zidane Use array of chars to store your large numbers then starting from right to left, char by char perform basic school addition or subtraction, taking care of carry or borrow