I dont know why this code keep crashing:

```
int main(void)
{
char input[13];
int i;

fgets(input,sizeof(input),stdin);
i = atoi(input[0]);

return 0;
}

```

If i type '1' (without quotes) the program crash. Compiler is mingw.