- 3
What is the difference between primitive data type and derived data type?
2 Antworten
+ 5
Primitive data types are simple types like int, double, char, etc.
Derived data types are composed from primitive ones. For example, an array of integers. Another example: you can make a Complex class which would have a pair of doubles representing the real and imaginary parts.
+ 2
primitive data types are those whose variables allows us to store only one valuebut they never allows us to store multiple values of same type.
Derived data types are those whose variables allow us to store multiple values of same type. But they never allows to store multiple values of different types.