Write a C program that uses a link list to store large integers. You do not know how many digits in your number at the beginning. Your code will only deal with positive integers. Read the large integer in one line as a single input (ASCII code of character '0' is 48, character '1' is 49, character '2' is 50 and continue in this manner) (You may read your large integer character by character.) Write the program that inputs two large integers (you may use library functions) and computes and prints the sum of those integers. Note 1: char a='2'; char b='0'; int i; i=a-b; i gets the value 2 Note 2: 3875672. The representation of that integer in your code should be: 5 7 8 3 X 2 7 Sample Input1: 387567234512345248 123498145488815723 Sample Output1: 511065380001160971 Sample Input2: 555666777888999333 666777888111999666 Sample Output2: 1222444666000998999 Sample Input3: 888444455556666 787878989898989 Sample Output3: 1676323445455655

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Should write in c language

Write a C program that uses a link list to store large integers. You do not know how many digits
in your number at the beginning. Your code will only deal with positive integers. Read the large
integer in one line as a single input (ASCII code of character '0' is 48, character '1' is 49,
character '2' is 50 and continue in this manner) (You may read your large integer character by
character.)
Write the program that inputs two large integers (you may use library functions) and
computes and prints the sum of those integers.
Note 1: char a='2'; char b='0'; int i; i=a-b; i gets the value 2
Note 2: 3875672. The representation of that integer in your code should be:
6
7
8
3 X
2
7
Sample Input1:
387567234512345248
123498145488815723
Sample Output1:
511065380001160971
Sample Input2:
555666777888999333
666777888111999666
Sample Output2:
1222444666000998999
Sample Input3:
888444455556666
787878989898989
Sample Output3:
1676323445455655
Transcribed Image Text:Write a C program that uses a link list to store large integers. You do not know how many digits in your number at the beginning. Your code will only deal with positive integers. Read the large integer in one line as a single input (ASCII code of character '0' is 48, character '1' is 49, character '2' is 50 and continue in this manner) (You may read your large integer character by character.) Write the program that inputs two large integers (you may use library functions) and computes and prints the sum of those integers. Note 1: char a='2'; char b='0'; int i; i=a-b; i gets the value 2 Note 2: 3875672. The representation of that integer in your code should be: 6 7 8 3 X 2 7 Sample Input1: 387567234512345248 123498145488815723 Sample Output1: 511065380001160971 Sample Input2: 555666777888999333 666777888111999666 Sample Output2: 1222444666000998999 Sample Input3: 888444455556666 787878989898989 Sample Output3: 1676323445455655
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY