Im getting the format %s expects argument of type *char,but argument is of type int, error here, can anyone help me fix this problem please ? It s a simple code but i have not leanr pointers yet, i do not know how to fix this issue.
int main()
{
  
  int items;
  int i;
     //main menu of the program
    printf("*********WELCOME TO ABC FASHION STORE***********\n");
    printf("\t\t\t1.Make a new sale\n\t\t\t2.Exit from POS system\n");
    printf("-----------------------------------------------------");
   printf("How many different types of items in your sales:");
   scanf("%d",&items);
   char code[items];
   int qty[items];
   for(i=0;i<items;i++)
   {
    printf("Enter the item code:");
    scanf("%s", code[i]);
    printf("Enter the quantity:");
    scanf("%d",&qty[i]);
   }
   //displaying the details of consumer
  printf("\nITEM CODE \t\t QUANTITY \t\t UNIT PRICE \t\t TOTAL\n");
  for(i=0;i<items;i++)
  {
   printf("%s\t\t%d\t\t", code[i],qty[i]);
  }
 
     
     
    