primitive and non-primitive data structure

Primitive data structure
  • Primitive data structures are the fundamental data structures.
  • It can be operated directly on the data and machine instructions.
  • It is also know as basic data structure.
  • Primitive data structures are defined by the programming languages, or we can say that it is built-in.
  • Some of the Primitive data types are integer, real, character, floating point number, and pointer.
  • Basically, ‘data-type’ , ‘data structure’ are often used interchangeably.
Non-primitive data structures
  • Non-primitive data structures are the data structures that are created using the primitive data structures.
  • It is little bit complicated as it is derived from primitive data structures.
  • Some of Non-primitive data structures are linked lists, stacks, trees, and graphs.
  • Also we can say that is a grouping of same or different data items.
Posted on by