Posts

Showing posts from June, 2021

Data Structure

Image
A data structure is a specialized format for organizing and storing data.  Classification of data structure: Primitive Data Structure: Data structures that are directly operated upon by machine-level instructions are known as primitive data structure. Examples -  Integer, Floating point, Character, Double, Pointer. Operations on Primitive Data Structure: Create : Create operation is used to create a new data structure. This operation reserves memory space for the program element. This operation is normally performed with the help of a declaration statement. Example: int x; Select: This operation is used to access data within a data structure. Example: cin >> x; Update: This operation is used to change or modify the data in a data structure. An assignment operation is a good example for an update operation. Example: x = 5; Destroy: this operation is used to destroy or remove the data structure from the memory space. Delete operator is used to perform this...