We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Arrays and Strings
- Printing Tokens
- Discussions
Printing Tokens
Printing Tokens
Sort by
recency
|
740 Discussions
|
Please Login in order to post a comment
include
include
include
include
int main() {
char *word = strtok(s, " "); while(word != NULL) { printf("%s\n", word); // Print each word in new line word = strtok(NULL, " "); // Move to next word } return 0; }
int main() {
}
It’s widely used for systems programming, embedded systems, and building performance-critical applications. Skysetx
int i;
for (i=0; s[i]!='\0'; i++) s[i] == ' ' ? printf("\n"): printf("%c",s[i]);
return 0;
int main() {
}
what the heck is truncated ???