Strange behavior of const_cast [duplicate]

Because modifying a variable declared to be const is undefined behavior, literally anything can happen.

Leave a Comment