Created
June 29, 2014 05:27
-
-
Save jhurliman/7255bd7726afa9077c7c to your computer and use it in GitHub Desktop.
Quick explanation of how to read const declarations in C-based languages
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
| const char *s; // read as "s is a pointer to a char that is constant" | |
| char c; | |
| char *const t = &c; // read as "t is a constant pointer to a char" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment