- 3

What is the difference between primitive data type and derived data type?

14th Oct 2016, 11:30 AM
Shafiya Nizam
2 Réponses
+ 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.
14th Oct 2016, 1:08 PM
Zen
Zen - avatar
+ 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.
14th Oct 2016, 12:04 PM
Aniket kinhikar
Aniket kinhikar - avatar