Question: help me to write c code UPLOAD FILE UPLOAD FROM GITHUB A UPLOA Big Big Numbers Addition 1 void add(char a[], char b[], char res[]){

 help me to write c code UPLOAD FILE UPLOAD FROM GITHUBA UPLOA Big Big Numbers Addition 1 void add(char a[], char b[],char res[]){ 2 Hard AC Ratio: 13.9% (334/2401) 3} #String #Loop #Array

help me to write c code

UPLOAD FILE UPLOAD FROM GITHUB A UPLOA Big Big Numbers Addition 1 void add(char a[], char b[], char res[]){ 2 Hard AC Ratio: 13.9% (334/2401) 3} #String #Loop #Array #Function You might know that computer can only represent a limited range of numbers. For a 32-bit machine, it can only deal with signed integers within (-2147483648, 2147483647]. But is there no any other way for computers to deal with a number out of this range, for real? Recall your memory in elementary school, how do you perform an addition? Everyone might know this way: 1234 456 1690 You take digits at same position, add them together. If the result is bigger than 9, carry 1 into next round. Repeat these step until last digit is processed. If we use string to represent an integer, and use the addition process above to calculate, digits by digits, then there will be no range problem. Now, given two VERY LARGE positive integers, can you add them together? Compile Message Loader Your code will be verified by the main file below #include #include void add(char a[], char b[], char res[]); int main(){ char a[100], b[100], res[105]; scanf("%s %s", a, b); add(a, b, res); printf("%s", res); return 0; 11 Your code goes here INPUT AND OUTPUT EXAMPLE Input The arguments passed to your function will be two strings a and b, representing the VERY LARGE integers. The maximum length of these strings do not exceed 100. Output You have to put the result of a + b into argument res. We guarantee that there will be enough space to hold the result of addition. INPUT AND OUTPUT EXAMPLE Sample 1 Input Output 12345 6789 19134 Sample 2 Input Output 12345678900000000 87654321 12345678987654321

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!