Question: what is the difference between a user-defined data type and a primitive data type?
Answer: Primitive data types are those that are provided by programming language. Examples are int, float, double, char and many more. User-defined data types are those that programmers can define by themselves to suit a particular application needs.