2. How to modify a const variable in C? How to modify a const variable in C++www.geeksforgeeks.org/how-to-modify-a-const-variable-in-c/ Whenever we use const qualifier with variable name, it becomes a read-only variable and get stored in .rodata segment. Any attempt to modify ...
When a function is declared as const, it can be called on any type of object. Non-const functions can only be called by non-const objects. For example the following program has compiler errors. https://www.geeksforgeeks.org/const-member-functions-c/ (the getvalue is not constant, so i...