-
-
Save fabiogaluppo/361c45bdfcaaff2f914d to your computer and use it in GitHub Desktop.
This file contains 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 int y = 4; | |
auto y1 = y; //y1 is int, not const int | |
y1 = 16; | |
const auto y2 = y; //const int | |
//y2 = 16; //compilation will fail, because y2 is read-only |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment