Posts by Gabriel Duarte • 11 points
1 post
-
1
votes1
answer1040
viewsA: Script to swap a character for an asterisk in a string
Assuming you’re using C void subs(char *str) { str[0] = '*'; int size = strlen(str); for(int i = 1; i < size; i++) if(str[i - 1] == ' ') str[i] = '*' } // Dentro da main vc le normal e chama a…