I am reading over the web about how atoi() only takes strings because it has a null terminator in the end. the problem is that, I didn't get much of a solution on how to fix when I am converting a single char. I read about putting - '0', but I really don't know where.Code:#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { char *status; char buffer[1024]; FILE *fp; char answer[50]; int i = 0; int total = 0; int converter = 0; char ans[50]; fp = fopen("trial.txt","r"); status = fgets(buffer,sizeof(buffer),fp); strcpy(answer,status); for(i = 0; i < strlen(answer) - 1;i++) { if(i % 2 == 0) { printf("%c",answer[i]); converter = atoi(&answer[i]); printf("%d\n",converter); } } status = fgets(buffer,sizeof(buffer),fp); fclose(fp); getchar(); return 0; }