Draft

A huge number

Description:

You are given two huge numbers. Your job is to add them together.

Input: two null terminated arrays of size 40 + the null terminator.

Output: a null terminated array of size 40 + the null terminator.

Details: the array contains numbers in ASCII format making up the hudge number. If the input would look like this n1 = "0000000000000000000000000000001234567890" and n2 = "0000000000000000000000000000001234567890" the output would be n = "0000000000000000000000000000002469135780"

Hint: the numbers are in ascii format and to convert them to normal numbers you need to do this: n[i] -= '0'; and n[i] += '0'; to convert them back

Stats:

CreatedSep 22, 2018
Warriors Trained109
Total Skips14
Total Code Submissions60
Total Times Completed24
C Completions24
Total Stars0
% of votes with a positive feedback rating60% of 21
Total "Very Satisfied" Votes10
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes6
Total Rank Assessments21
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • vladalex420 Avatar
  • ddrouin Avatar
Ad