Difference between primitive and non-primitive data type

0
4
digitalample eye

Primitive Data Type,

A primitive data type is one that fits the base architecture of the underlying computer such as int, float, and pointer, and all of the variations, thereof such as char short long unsigned float double and etc, are a primitive data type.
Primitive data are only single values, they have not special capabilities.
The examples of Primitive data types are given byte, short, int, long, float, double, char etc.
The integer reals, logic data character data pointer, and reference are primitive data structures data structure that normally is directly operated upon by machine-level instructions are known as the primitive structure and data type.

Non- Primitive Data type,

A non-primitive data type is something else such as an array structure or class is known as the non-primitive data type.
The data type that are derived from primary data types are known as a non-primitive data type. The non-primitive data types are used to store the group of values.
Examples of the non-primitive data type.
Array, structure, union, link list, stacks, queue etc.

LEAVE A REPLY

Please enter your comment!
Please enter your name here