Write a code to remove duplicates in a string.
Answer / Prince Gupta
One way to remove duplicates from a string is by using an array and sorting:
```c
#include <stdio.h>n#include <string.h>nnint compare(const void *a, const void *b) {n return strcmp(*(const char *)a, *(const char *)b);
}nnvoid removeDuplicates(char str[]) {n int unique_chars[256] = {0}; /* Assuming ASCII */n int unique_count = 0;n int i;
for (i = 0; str[i] != '