Briefly difference between permititive and non permititive data structure
Answers
Answer:
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 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 are directly operated upon by machine level instructions are known as 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 non-primitive data type.
The non-primitive data types are used to store the group of values.
Examples of non-primitive data type.
Array, structure, union, link list, stacks, queue etc.
1.primitive data type are predefined data type.ex-int ,float etc.
2.non primitve data type are based on class. it is also called refrence data type .ex- arrays, class etc