im trying to add a number like 1234567891112131415 and 1234567891234567891234556. i stored them both as string1 and string2 but i cant figure out how to get the answer.i think i need to use strtol, but i cant figure out what am i doing wrong. any help?
Code:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main() {
// variables
char string1[512];
char string2[512];
//opening
printf("Enter a whole number:");
scanf_s("%s", string1);
printf("Enter another whole number:");
scanf_s("%s", string2);
//adding trying to use strtol function
long strtol(char *string1, char** string2);
//results
printf("The sum is:%s", );
//exiting
getchar();
getchar();
return 0;
}