Question: what is the difference between a primitive data type and a user-defined 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.