Implement a C function that can perform addition of two 15-digit (positive) integers. As in C the
maximum integer number that can be stored in memory is 2147483647 it is not possible to use
primitive data types in order to add very large whole numbers. For this reason, you are required to
represent very long integer numbers using arrays of chars and then implement a function that can
add two such numbers.
Test your function by performing the additions shown below:
459274957162030 + 0027998725610304 = ________________
123450928482350 + 2784910000000000 = ________________
Jump to Post
Just write down the code of what you know, send it to us and point us to the point where you get stuck.
All 11 Replies
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.