Advertisement
shawonrog

4(striing tokenization)

Sep 24th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdio.h>
  3. int main(){
  4. char s[1000];
  5. int A;
  6.  
  7. gets(s);
  8. char* token=strtok(s," ");
  9.  
  10. while(token!='\0'){
  11. printf("%s\n",token);
  12. token=strtok(NULL," ");
  13.  
  14. }
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement