Code Snippets C

//Declaration: long int atol(const char *str);
#include
#include
int main(void)
{
char j1[80], j2[80];
printf("Enter first: ");
gets(j1);
printf("Enter second: ");
gets(j2);
printf("The sum is: %ld.", atol(j1)+atol(j2));
return 0;
}