Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer in c, Im having a hard time trying to figure this out. Thank you! (15pt) Suppose we are dealing with very large integers,
Please answer in c, Im having a hard time trying to figure this out. Thank you!
(15pt) Suppose we are dealing with very large integers, so a variable with int type is not enough to store such big numbers. So we decided to use double linked list to store the digits of our integers. Accordingly, we created the following structures and linked them to store the digits of our integers, as shown in the below examples 6. typedef struct digitcell int digit; l Actually, it would be better to make this char. but to simplify the code, keep it int struct digitcell prev; struct digitcell *next; | digitcellT typedef struct bigint ( digitcellT *start; digitcellT *end; ) bigintT; Suppose we have already created the following two linked lists for 759 and 9634, respectively NULL NULI NULL NULL You are asked to implement a function, void sum_func (bigintT * sum, bigintT *nl, bigintT *n2), which can be called as follows to create a new link list to represent the sum of the integers given in the above lists bigintT sum, nl, n2; suppose we created the above lists and stored their start and end in nl and n2 */ sum . Start sum . end = NULL; sum func (&sum, &nl, &n2) The resulting new list (sum) will look like as follows sum NUL NULLStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started