Skip to content

Instantly share code, notes, and snippets.

@pyk
Created July 4, 2016 07:23
Show Gist options
  • Save pyk/612bc1e3c4150e176dab392985688e15 to your computer and use it in GitHub Desktop.
Save pyk/612bc1e3c4150e176dab392985688e15 to your computer and use it in GitHub Desktop.
char buff[6] = {'h', 'e', 'l', 'l', 'o', '\0'};
/* or */
char *buff = "hello"; /* \0 implicitly appended */
/* or */
char buff[] = "hello";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment