I was writing experimental code in an attempt to deepen my understanding of C++ operators, and came across the following example which prints 0 (false) and exits.
bool doSomething() {
return false;
}
int main() {
std::cout << (********doSomething)() << std::endl;
return 0;
}
Is this behaviour covered by the standard? If so, how is it we can dereference a pointer eight times and still get the same pointer?