Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(void){
- char items [15][7]={"SKU000","SKU001","SKU002","SKU003","SKU004","SKU005","SKU006","SKU007","SKU008","SKU009","","","","",""};
- int quantity [15]= {0};
- char description [15] [15]={"candy","sweets","toy","lamp","swater","t-shirt","dress","suit","mower","Laptop"};
- float item_price[15]={2.99,4.99,9.99,10.00,20.00,24.15,40.00,99.00,200.00,600.00,0.00,0.00,0.00,0.00,0.00};
- }
- //Please give me an example of how a function can read these variables and strings? Lets say the function is called SHOP.
- //I tried this but won't work:
- float (char *items, int *quantity, char *description, float *item_price){
- }
Add Comment
Please, Sign In to add comment