Q. Is data structure related to a data type? Explain.
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.
AYO THX
ReplyDeleteWelcome : )
DeleteReally helpful
ReplyDelete😊😊
DeleteLOVE THIS FR TYSM!
ReplyDeleteWelcome : )
Deletethank you so your easly able answers
ReplyDeleteWelcome : )
Deletehow are they related
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )