It is a bad programming, because you wanted to change the property of constant itself.
Its not a good advise to change the const variable value if you wanted to change the variable value then why you are using const use a normal variable.
Anyways you can do it by using a pointer.
For example:
int main()
{
const int i = 1;
int *ptr = &i;
printf("value of i before changing = %d\n", i);
*ptr = 2;
printf("value of i after changing = %d\n", i);
return 0;
}
output will be:
value of i before changing = 1
value of i after changing = 2