When you declare a const you provide a guarantee to the compiler that the value will never be changed by your program; the value is constant. All constants are implicitly static, so they are always allocated in the program's data segment rather than on the stack.
When you declare a variable as being volatile, you are stating to the compiler that the memory referred to by that variable is not under the direct control of your program and that external processes may change the value at any time.
volatile int means the code and fom outside from code can changes the value but in const volatile int, code cannot changes the value but fron ouside can change the value
name, type, storage class, other attributes (const, volatile), value, address
Everything. "inline" refers to functions, "const" refers to variables.
const type, for instance (const double = 1.1; this you cannot change during run)
auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while
volatile int means the code and fom outside from code can changes the value but in const volatile int, code cannot changes the value but fron ouside can change the value
short, long, long long signed, unsigned const, volatile
name, type, storage class, other attributes (const, volatile), value, address
spirit lamp
RAM is a volatile Memory. But ROM is not volatile.
volatile will evaporate
volatile will evaporate
DRAM is a volatile memory
DRAM is a volatile memory
Non-volatile
Everything. "inline" refers to functions, "const" refers to variables.
ROM is non-volatile memory.