4 ms·
Yes, if a variable is declared const, casting away const-ness from a pointer to it and then writing to it is undefined.
by TorKlingberg 10y ago
Yes, if a variable is declared const, casting away const-ness from a pointer to it and then writing to it is undefined.