Are simple type variables objects in C++?
int x = 0;
Obviously, that depends on the definition of the object. So would x
be object in this case? It may not be defined by the standard in any way, but please do claim so if you are sure that this is either object or it is not.
Yes (object in the standard are simply a region of storage -- 1.8/1)
And for variable (3/4)
For the curious, the definition is inherited from C (with modifications needed for C++). The C 90 Standard states: