Differentiate between built in data type and user defined type
Answers
Answered by
2
Primitive data types include integer , character , void , float etc..which are defined already inside the language i.e , user can use these data types without defining them inside the language.
User defined data types are the data types which user have to define while or before using them.
For example:- In C language , structure and union are used as user-defined data types.
User defined data types are the data types which user have to define while or before using them.
For example:- In C language , structure and union are used as user-defined data types.
Answered by
1
• 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.
For example
define studenttype to be
{
char name[25];
int enrollment_no;
int age;
.
.
.
}
• User-defined data types are those that programmers can define by themselves to suit a particular application needs.
For example
define studenttype to be
{
char name[25];
int enrollment_no;
int age;
.
.
.
}
Similar questions