I am not able to replace duplicate numbers with a character "a" : <pre><code>    for (int i=0; i&lt;n-1; i++) {
    for (int j=0; j&lt;n-1; j++) {
        if (arr[i]==arr[j]) {
            arr[j]=a;
        }
    }
}
</code></pre>

<p>Why I can't replace duplicate number with a character "a"</p>
