C PROGRAMMING LANGUAGE ONLY
Propose an algorithm to extract the tokens (words) from astring. Words are supposed to be separated by white spaces.
Write a program that extracts the tokens from a string. Given astring as input, the program should print on the screen each tokenon a new line. For example given the following string as input:“hello there my friends” the program should generate:
hello
there
my
friends
Expert Answer
An answer will be send to you shortly. . . . .