[Solved] How are primitve/fundamental datatypes in C++ structured?


C++ language has grammar for specifying classes, and the definition of a class can be shown by writing it in C++:

class class_type {}; // an example of a class

Unlike class types, fundamental types aren’t and cannot be defined using the C++ language and as such, it is not possible to show their definition using C++.

The standard specifies the behaviour of fundamental types. Objects of fundamental types occupy some memory storage, and the state of the memory represents some value. Exactly what memory representation has any particular value is not specified by the standard and can be different across separate systems.

2

solved How are primitve/fundamental datatypes in C++ structured?