Tagged: 

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #246
    admin
    Keymaster

      My goal is to create a new array named char temp_array[t] that will be equal to argv[1][ ]. Is it possible? What should I place in the second square bracket of argv[1][ ]. Following is the code I have written:

      
      
      char temp_array[t] = argv[1][];
          for (int i = 0; i < 25; i++)
          {
              for (int j = i; j < 25; j++)
              {
                  temp_array[t] = toupper(temp_array[t]);
                  printf("capital%c", temp_array[t]);
                  if (temp_array[t] == temp_array[1][j + 1])
                  {
                      printf("keys should be unique");
                      return 1;
                  }
              }
          }

       


      Reply


      https://edstem.org/us/courses/176/discussion/1198141

      [learn_press_profile]

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.
    Scroll to Top