fork download
  1. /*Chop first letter in a given word and print new word*/
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. char word[30], nword[30]; /*variable for word and new word*/
  7.  
  8. printf("Type a word, then we'll see what it becomes when you chop the first letter\n");
  9.  
  10. scanf("%s",&word);
  11.  
  12. word[0]="0";
  13. printf("Remove the first letter and you get %s.\n",word);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 1680KB
stdin
skill
stdout
Type a word, then we'll see what it becomes when you chop the first letter
Remove the first letter and you get [kill.