News for hackers. Stuff that matters.
Re:C++ is not a superset of C by pmul on Tuesday September 03, 2019 @04:32PM (#20870858)
The first example doesn't produce undefined behaviour as c++ - it just won't compile - you can't initialise that pointer to a non const int from a const int without doing something naughty like a const_cast.

There are no comments on this comment yet.