I have most of the program working, I just dont know why the program stops working after this if statement
why does my program stop working after the second scanf statement?Code:if(menu == 2)
{
printf("What slot would you like to save this item to? 0-9\n");
scanf("%d", &slot);
printf("Please type in the name of the item you would like to enter\n");
scanf("%s", inv_items[slot][20]);
}