#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> char* addBigInt(char* num1,char* num2) { int c=0;//保存进位 int i=strlen(num1)-1; int j=strlen(num2)-1; int maxLength=(strlen(num1))>=(strlen(num2))?(strlen(num1)+1):(strlen(num2)+1); char *rst=(char*)malloc(maxLength+1); if(rst==NULL) { printf("malloc error! "); exit(1); } rst[maxLength]='