The code used in program
int main() {
//Introduction to strtok function
char str[20] = "HEY HOW ARE YOU?";
char* ele = strtok(str, " ");
while(ele != NULL){
printf("%s\n",ele);
ele = strtok(NULL," ");
}
return 0;
}
#cprogramming
#cprogrammingtutorial
#strings
Download
0 formats
No download links available.
strtok function in c | split string in c PART 1 | NatokHD