Which statement XXX will correctly parse input string userInput[] into 3 values?
0
char userInput[] = "Sports Tent 75.50";
float price;
char storeDepartment[20];
char itemType[20];
int enteredValues = XXX;
if(enteredValues >= 1){
printf("Store Department: %s\n", storeDepartment);
printf("Item: %s\n", itemType);
printf("Price: %.2f\n", price);
}
sscanf(userInput, "%19s %19s %f", storeDepartment, itemType, &price)
Error: Variable is uninitialized
sscanf(userInput, storeDepartment, itemType, price)
sscanf("%19s %19s %f", userInput, storeDepartment, itemType, &price)