+ 15
Are data types in cpp like int,double,float,etc ..are also the classes?
4 Respuestas
+ 3
AFAIK they are referred to as primitives (intrinsic types).
* Integral data types:
`short`, `int`, `long`, `long long` (and their unsigned variants) also `char` type can be classified as integral data type, because `char` stores integer value internally. it's just that `char` representation on screen differ to other integral data types, because printing a `char` means to show the respective character instead of the underlying integer value (also known as ASCII code).
* Floating point data types:
`float`, `double`, `long double`
+ 1
No also the methods
- 2
jjwjs