char line;
int letters;
char display[letters];
//you can't declare an array like this. you either hard code it ( display[255] ), or you research pointers and learn how to use malloc.
...
Type: Posts; User: k6trouble
char line;
int letters;
char display[letters];
//you can't declare an array like this. you either hard code it ( display[255] ), or you research pointers and learn how to use malloc.
...
char line;
int letters;
char display[letters]; // PROBLEM 1,
printf("enter a line:\n");
scanf("%s", line);
letters = strlen(line); //PROBLEM 2, strlen takes a pointer, not one char....