title: reverse-alphabetizing a string in c
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main(void)
  {
  int i, temp;
  char input[50];
  
  printf("Enter a string: \n");
  scanf("%s", input);
  
  for(i=0; input[i] != '\0'; i++) {
      if(strcmp(input[i], input[i+1])&lt;0) {
          temp=input[i];
          input[i]=input[i+1];
          input[i+1]=temp;
          }
      }
  printf("%s\n", input);
  return(0);
  }
  </code></pre>
  
  <p>I am supposed to write a program which sorts the characters of a user-inputted string into backwards alphabetical order.  I believe I am using the strcmp function incorrectly?</p>