When I use an initialization list:
struct Struct {
Struct() : memberVariable() {}
int memberVariable;
};
the primitive type (int, bool, float, enum, pointer) member variable is default-initialied. Is the value it gets implementation defined or is it the same for all implementations?
You are not correct. The object is not default-initialized but value-initialized. And its value is well-defined
Note that zero is in the range of values for any enumeration, even if it doesn’t contain an explicit enumerator with that vaue, so it’s safe to initialize an enumeration variable to that value.
In particular for pointer to data members, the representation used in practice is not all-zero bits. In the so-called C++ Itanium ABI used by at least GCC and Clang, pointer to data members have an all-one bits null representation.