#include using namespace std; int main() { const int N = 22; int * pN = const_cast(&N); *pN = 33; co
You can declare N as volatile, to force the compiler to fetch the current value from the variable's memory location.
volatile const int N = 22;