Hi, I need some help with this question(Data Structure Course) I am a bit confus
ID: 3885344 • Letter: H
Question
Hi, I need some help with this question(Data Structure Course)
I am a bit confused on how to solve this.
Thanks!
Explanation / Answer
We can use following approach to hold integers of any size.
We will represent integers as array of characters or strings.So every digit will be the member of this character array.Addition and subtraction can be performed accordingly.Once we have got these strings we can dynamically allocate array of integers to hold the individual elements of this string integers. Once we have all the digits stored in integer arrays we can perform the trivial operations of addition, multiplication and subtraction.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.