Created
July 4, 2016 07:23
-
-
Save pyk/612bc1e3c4150e176dab392985688e15 to your computer and use it in GitHub Desktop.
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
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