Guest User

Untitled

a guest
Jun 22nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. int main(void){
  2. char items [15][7]={"SKU000","SKU001","SKU002","SKU003","SKU004","SKU005","SKU006","SKU007","SKU008","SKU009","","","","",""};
  3. int quantity [15]= {0};
  4. char description [15] [15]={"candy","sweets","toy","lamp","swater","t-shirt","dress","suit","mower","Laptop"};
  5. 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};
  6. }
  7.  
  8. //Please give me an example of how a function can read these variables and strings? Lets say the function is called SHOP.
  9. //I tried this but won't work:
  10.  
  11. float (char *items, int *quantity, char *description, float *item_price){
  12. }
Add Comment
Please, Sign In to add comment