In the following code, when I would select View Menu Prices, Purchase Tickets, and Sales Statistics the wrong price would display. For example if tickets in row 1 cost $1 the compiler would display 4716832. There is no syntax error because the code runs in a compiler, but doesn't display the correct price. Any ideas on whats causing this and how to fix it. My complete code below.
int price[NUM_ROWS]; is local variable in every function.
When you ask user for prices in main(), you set only local variable in main(), but not in buy_tickets() or seating_prices(). So in other functions these variables have same names but different values (trash because uninitialized).
Make it global, define it somewhere between 16-26 lines and remove from other places.