4 ms·
Maybe off-topic, but here's an example of a null dereference that usually won't segfault because it never actually loads the address: struct X { int foo() {
by repsilat 4y ago
Maybe off-topic, but here's an example of a null dereference that usually won't segfault because it never actually loads the address:
struct X { int foo() { return 1; } };
X *x = nullptr;
cout << x->foo() << endl;