linked lists, Large integers manipulation
Posted on 2003-03-05
i am writing a program that needs to do basic arithmatic on large integers that dont fit in a "int" value so i am storing them as linked lists ,backwards, so that when i use recursion to print the number it prints it out in the right order. anyways how would i go about adding and subtracting such large numbers? my struct is like so:
struct integer *next;};
i am planning on making them functions that accept inputs of 2 head pointers for 2 sets of linkedlist numbers and returns a new head with the answer?