Oh! Thanks But I've put this in my code, is this correct?

k=strlen(words[j]);
for(l=0;l<k;l++){
printf("*");
}
printf("\n");


where words[j] is the word the user will guess. Did I replace the word with asterisks correctly?