Posts by Pedro Henrique • 11 points
1 post
-
1
votes0
answers32
viewsQ: Can I pass a string, which is not previously stored in an array, as a parameter for a function?
I wrote this function to remove the characters nay repeated from any string in c: char *repeticoes(char *s){ int i=0, j, cont=0; while(s[i]!='\0'){ for(j=0;j<strlen(s);j++) if(s[j]==s[i] &…