Concept
What happens when you reassign a const variable in C?
ComputerScienceOne / Operators
"15. Basics 1 const int secret = 42; 2 const double salesTaxRate = 0.075; Any attempt to reassign the values of const variables will result in a compiler error."
Related Ideas
- What shorthand and read-only options are available for Java variables?ComputerScienceOne · Declaration & Assignment
- How do you declare variables in C?ComputerScienceOne · Declaration & Assignment
- What are the basic syntax rules of C?ComputerScienceOne · Basic Syntax Rules
- What primitive types does C support?ComputerScienceOne · Declaration & Assignment
- What is the order of precedence and associativity of C operators?ComputerScienceOne · Order of Precedence
- How are String variables declared and reassigned in Java?ComputerScienceOne · Basics
- How do you use the C standard mathematics library?ComputerScienceOne · Preprocessor Directives
- How can pointers be used to pass variables by reference?ComputerScienceOne · Passing By Reference