Changing constant value by pointer variable
Hi guys.
I'm wondering if it's possible that when I declare an constant value and I point to it by pointer variable (not constant pointer variable) ... is it legible and possible to change the value that Im pointing at?
I mean for example lets assume so if I point to this value by integer pointer variable (not constant pointer) will the value that Im pointing at (the value var) change?
another question in the same context, if I have pointer variable which it's constant (i.e like ) so I can't change the value that ptr is pointing at
by ptr pointer, but I can declare another pointer variable like int *ptr2 and let it points to the
same value and then I can change the value by ptr2 pointer .. right?
in other words is a constant regarding to ptr itself but I can declare another
pointer variable which it's not const and change the value that ptr pointing at by
the new pointer variable .. right?