Make your prototype like thisand pass it in main like thisCode:void sale_menu(int* menu)But then you will have to change your scanf in your function toCode:sale_menu(&getMenu);Read up on pointersCode:scanf("%d", menu);
Make your prototype like thisand pass it in main like thisCode:void sale_menu(int* menu)But then you will have to change your scanf in your function toCode:sale_menu(&getMenu);Read up on pointersCode:scanf("%d", menu);
Last edited by camel-man; 10-28-2012 at 05:39 PM.