Subtraction in C++

Oct 19, 2018 at 3:23pm
I need C++ code to Perfrom Subtraction of two Integers having more than 10 digits

For Example 123456789987654321-1234566777898978787862

Oct 19, 2018 at 3:34pm
Oct 19, 2018 at 6:46pm
I would like an answer to this too. I dont understand how to do it from the link.
Last edited on Oct 19, 2018 at 6:54pm
Oct 19, 2018 at 7:13pm
The algorithm is fairly straightforward. It's just the subtraction algorithm children learn in school, generalized to a base that depends on the size of uintptr_t (typically base 2^32 or base 2^64).
Topic archived. No new replies allowed.