title: How to make an Array equal another array in C
body: <p>I am having trouble making an array equal another array in c.
  in the main method it will not let me assign inputInt1 to the returned value of converTwosComp.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  int validChecker(char *input_StringIn);
  int* convertTwosComp(char *inputStringIn, int *inputIntIn);
  int main(void) {
      char inputString1[11];
      char inputString2[11];
      int inputInt1[11];
      int inputInt2[11];
  
      printf(" is ");
      inputInt1 = convertTwosComp(inputString1, inputInt1);
      for(i = 0; inputString1[i]; i++){
          printf("%d", inputInt1[i]);
      }
  
  
      int * convertTwosComp(char *inputStringIn, int *inputIntIn){
      int digit;
      int i;
  
      if((inputStringIn[0] == '+') ||(inputStringIn[0]) == '0'){
          inputStringIn[0] = 0;
      }
      if(inputStringIn[0] == '-'){
          inputStringIn[0] = 1;
      }
      for(i = 0; inputStringIn[i]; i++){
          digit = inputStringIn[i] - '0';
          inputStringIn[i] = digit;
      }
  
      for(i = 0; inputIntIn[i]; i++){
          if(inputIntIn[i] == 0){
              inputIntIn[i] = 1;
          }
          if(inputIntIn[i] == 1){
              inputIntIn[i] = 0;
          }
      }
      return inputIntIn;
  
  
  
  }
  </code></pre>
  
  <p>in the main method it will not let me assign inputInt1 to the returned value of converTwosComp.</p>