Mention the different operations performed on primitive data structures
Answers
Answered by
10
Q) What are the different operations performed on data structures?
ANS)
What are primitive operations?
- Primitive operations are basic computations performed by an algorithm. Examples are evaluating an expression, assigning a value to a variable, indexing into an array, calling a method, returning from a method, etc. They are easily identifiable in pseudocode and largely independent from the programming language.
- There are many different type of data structures - list, graph, tree, record (also called a struct or tuple), map (also called a dictionary), etc.
- The most common operations performed on them are:
- Data insertion.
- Data update.
- Data retrieval.
HOPE THIS HELPS YOU...............Ω
Answered by
2
The operations that can be performed on the primitive data structures are,
- Arithmetic operations
- Increment operations
- Decrement operations
Primitive data structures store the data of a single type only. It is a structure that must contain some value, it cannot be null or empty. These are used to call methods and functions.
The examples are,
- integer
- float
- boolean
- character
Similar questions