Meaning of keyword const in C++ program :-

whenever a variable is prefixed by the const keyword then that variable becomes a constant whose value cannot be changed throughout the program, changing the value of a constant variable will throw an error!.

Privacy & Terms