Question: Complete the search function that looks up the part in inv (an array of struct part). The function prompts the user to enter a part

Complete the search function that looks up the part in inv (an array of struct part). The function prompts the user to enter a part number. If the part exists, prints the name and quantity on hand; if not, prints a "part not found" message. Parameter np contains the number of parts in the array Assume the structure part is defined as: struct partf int number; char name [31]; int on hand; )i void search (struct part invll, int np) add additional variable declarations if necessary int number; printf("Enter part number: ") scanf("%d", &number)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
