Does it ever make sense to declare a variable in C or C++ as both volatile (in other words, “ever-changing”) and const (“read-only”)? If so, why? And how should you combine volatile and const properly ...
"const" means the program can't change whatever is declared constant, and it's used thusly:<BR><BR><B>Examples:</B><BR><BR><B>---</B>Declare global/local variables as const to simplify coding, ...