Data Structures and Algorithms in C/C++ a) Implement the addLargeNumbers function with the following prototype: void addLargeNumbers(const char *pNum1, const char *pNum2); This function should output the result of adding the two numbers passed in as strings. Here is an example call to this function with the expected output: /* Sample call to addLargeNumbers */ addLargeNumbers("592", "3784"); /* Expected output */ 4376 b) Implement a test program that demonstrates adding at least three pairs of large numbers (numbers larger than can be represented by a long). c) (1 point) Make sure your source code is well-commented, consistently formatted, uses no magic numbers/values, follows programming best-practices, and is ANSI-compliant.
Data Structures and
a) Implement the addLargeNumbers function with the following prototype:
void addLargeNumbers(const char *pNum1, const char *pNum2);
This function should output the result of adding the two numbers passed in as strings. Here is an example call to this function with the expected output:
/* Sample call to addLargeNumbers */
addLargeNumbers("592", "3784");
/* Expected output */
4376
b) Implement a test program that demonstrates adding at least three pairs of large numbers (numbers larger than can be represented by a long).
c) (1 point) Make sure your source code is well-commented, consistently formatted, uses no magic numbers/values, follows
Trending now
This is a popular solution!
Step by step
Solved in 2 steps