Skip to content

Instantly share code, notes, and snippets.

@Yoxem
Created November 17, 2016 15:35
Show Gist options
  • Save Yoxem/cf804afeffd63e8e08af3eb3a28bfd4f to your computer and use it in GitHub Desktop.
Save Yoxem/cf804afeffd63e8e08af3eb3a28bfd4f to your computer and use it in GitHub Desktop.
practice about string manupilation
#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