So I have this code:
char inputs[10] = "";
int numInputs = 0;
while (numInputs < 10){
char c;
printf("Enter char %i: ",numInputs);
scanf("%c",&c);
numInputs++;
}
I'm just trying to fill the array with 10 char values as inputted by the user. When i run this, it only lets me enter inputs ever other loop (?). This is what the console looks like-
Enter char 0: c
Enter char 1: Enter char 2: r
Enter char 3: Enter char 4: r
Enter char 5: Enter char 6: r
Enter char 7: Enter char 8: r
Enter char 9: Program ended with exit code: 0
Is there a nit-picky thing here that i'm missing?