int main(){ char word [100]; /*Read word from the keyboard using scanf*/ printf("Please enter a word that is less than 100 characters: "); scanf("%s", word); /*Call studly*/ studly(word); /*Print the new word*/ printf("Output: %s\n", word); return 0; }
int main(){ /*Read word from the keyboard using scanf*/ char str[100]; scanf("%s", str); /*Call studly*/ studly(&str); /*Print the new word*/ printf("%s\n", str); return 0; }