Question: What happens when a program tries to modify a const variable? What happens when a program tries to modify a const variable? The compiler produces
What happens when a program tries to modify a const variable?

What happens when a program tries to modify a const variable? The compiler produces an error The program works but the variable is unchanged The variable is modified normally the variable is set to zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
