Skip to content

Instantly share code, notes, and snippets.

@jhurliman
Created June 29, 2014 05:27
Show Gist options
  • Select an option

  • Save jhurliman/7255bd7726afa9077c7c to your computer and use it in GitHub Desktop.

Select an option

Save jhurliman/7255bd7726afa9077c7c to your computer and use it in GitHub Desktop.
Quick explanation of how to read const declarations in C-based languages
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