title: Remove the duplicate from a String Using Pointers
body: <pre><code>#include&lt;stdio.h&gt;
  char *removedps(char *x)
  {
      int Ar[256] = {0};
      int ip=0;
      int op=0;
      char temp;
      while(*(x+ip))
      {
         temp  = (*(x+ip));
         if (!Ar[temp])  {
           Ar[temp] = 1;
           *(x+ip) = *(x+op);
           op++;
         }
         ip++;
         *(x+op) = '\0';
      }
    return x;
  }
  
  int main()
  {
    char lo[] = "0001";
    printf("%s",removedps(lo));    
  }
  </code></pre>
  
  <p>My code is not working 
  I have tried hard to see the error 
  All I GET IS the first character .
  My idea is simple
  make an array of 256 places
  insert Zero into them 
  Then insert 1 for each character inside the string (on that position of the array)</p>