This code below add two positive numbers in any base from binary
to base 36 with any length allowed by memory. The snippet comes
with examples. There might be some bugs, because I haven't tested
extensively, so forgive me if you find bugs. Hope people find it useful
somehow. Thanks for reading.
--------------------------------------------------------------------------------------
Oh. Found a bug, after positing this post, of course,
For the isValidNum function the if statement inside the for loop should be this :
if( unsigned(toBaseInt(num[pos])) >= base ) return false;
the comparison needed to be >= instead of >. Sorry for the bug.