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 assumeso if I point to this value by integer pointer variable (not constant pointer) will the value that Im pointing at (the value var) change?Code:const int var=10
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 atCode:int const *ptr
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 wordsis a constant regarding to ptr itself but I can declare anotherCode:int const *ptr
pointer variable which it's not const and change the value that ptr pointing at by
the new pointer variable .. right?