Anonymous
public c v1 · immutableint countwords1(char string[]) { char *token; int i = 0; token = strtok(string, " ,.\n"); while (token != NULL) { printf("The token is: %s\n", token); token = strtok(NULL, " ,.\n"); i++; } return i;}int countwords1(char string[]) { char *token; int i = 0; token = strtok(string, " ,.\n"); while (token != NULL) { printf("The token is: %s\n", token); token = strtok(NULL, " ,.\n"); i++; } return i;}