Created
June 23, 2012 17:13
-
-
Save klmr/2979069 to your computer and use it in GitHub Desktop.
strlen test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
int main(void) { | |
char * str = "hello, world"; | |
for (int i = 0; i < strlen(str); ++i | |
printf("%c ", str[i]); | |
printf("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment