Q. Compare a data type with a Data structure.
Answer =
A Data type defines a set of values along with well-defined operations stating its input-output behavior e.g., you cannot put decimal point in an integer or two strings cannot not be multiplied etc.
On the other hand, a Data structure is a physical implementation that clearly defines way of storing, accessing, manipulating data stored in a data structure. The data stored in a data structure has a specific data type e.g., in a stack, all insertions and deletions take place at one end only.
On the other hand, a Data structure is a physical implementation that clearly defines way of storing, accessing, manipulating data stored in a data structure. The data stored in a data structure has a specific data type e.g., in a stack, all insertions and deletions take place at one end only.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )