Primitive Data Type
Primitive data types are a set of basic data types from which all other data types are constructed.
In C, there are four types”
- char
- int
- float
- double
- bool(added in C99)
What about a
struct?A struct is not a primitive data type, but rather a Compound Data Type.
Is a pointer a primitive data type?
It could be argued that yes, because it’s just a 64-bit memory address, so a
long long int.However, this view overlooks the complexities and specific functionalities associated with pointers, such as referencing, dereferencing, and interacting with memory. Therfore, they’re generally not classified as primitive types.