Created
November 17, 2016 15:35
-
-
Save Yoxem/cf804afeffd63e8e08af3eb3a28bfd4f to your computer and use it in GitHub Desktop.
practice about string manupilation
This file contains hidden or 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 <stdio.h> | |
#include <string.h> | |
int main(int argc, const char * argv []) { | |
char *your_name_input = ""; | |
printf("Input your name >>"); | |
scanf("%s",&your_name_input); | |
printf("Your name is %s; The length is %d.\n", &your_name_input, | |
strlen(&your_name_input)); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment