why does this not work?Code:#include <stdio.h> #include <string.h> #include <stdlib.h> int main (void) { char wth[1001]="12345678900761235897612486"; int wtha; wtha=atoi(&wth[0]); printf("%i", wtha); return 0; }
i want that wtha becomes 1. - nothing else.
what can i do?
why is the output not:
"1"
????
greetings-mekeor