The title says it all. How am I able to change the value of a constant? Also is that the same as when you change the value of an element at index X of a constant array?
    #include<iostream>
    int main(){
        const char* y = "original";
        auto *p = &y;
        *p = "modified";
        std::cout<<y<<"\n";
        //outputs modified
        system("pause");
        return 0;
    }
 
     
    