I have a product sales management program where I have a structure for storing product data, another to store customer data and another to store sales data. When I insert a new sale has to be associated with a existing product serial number and the id of a existing customer. How do I guarantee when data products and customers struct are changed the sales struct is updated?
Here's what I have:
Any help!!!!Code:typedefstruct{ int idcustomersale; char serialnumberproductsale[10] float final_price; }stsales; int main() { stsales sales[1000]; int countsales=0; } //Code of function find_min_max...........