I am unsure why my code is skipping the printf
after scanf
. Only after I input my gets(array)
does my printf
print the statement.
void stack_(void) {
int amount;
printf("PLease enter amount\t");
scanf("%i ", &amount);
char array[amount];
printf("user amount is %i\n", amount);
gets(array);
puts(array);
}