# DEFINE _ crt_secure_no_warnings # include <stdio. h> # include <string. h> int main () {char str1 [255], str2 [255]; int num1 [255] = {0}, num2 [255] = {0 }; // It is used to store the number of integers, and the shorter one fills in the leading zero int sum [255] = {0}; int length1, leng2, length; int I, j; gets (str1 ); gets (str2); length1 = strlen (str1); length1 = strlen (str2); length = length1> leng22? Length1: leng22. // store two integers into num [] for (I = length-1, j = length1-1; j> = 0; I --, j --) {num1 [I] = str1 [J]-'0';} for (I = length-1, j = leng22-1; j> = 0; I --, J --) {num2 [I] = str2 [J]-'0';} // perform addition calculation from the back to the front for (I = length-1; I> = 0; I --) {sum [I] = sum [I] + num1 [I] + num2 [I]; If (sum [I]> = 10) & (I! = 0) {sum [I] = sum [I]-10; sum [I-1] ++; // represents carry} for (I = 0; I <length; I ++) {printf ("% d", sum [I]);} return 0 ;}