The following code will compile and is deterministic according to cppquiz.org (Question #30)
#include <iostream>
struct X {
X() { std::cout << "X"; }
};
int main() { X x(); }
The output of the program is nothing, as
X x();
is a function declaration.
But still I wonder why this compiles though this declaration is never defined anywhere?
x. It wouldn't link, though.