Unit 1
Unit 1
Image source :
Youtube video
Non-Linear Data Structure
• Data structures where data elements are not arranged sequentially or linearly are
called non-linear data structures.
• In a non-linear data structure, single level is not involved. Therefore, we can’t
traverse all the elements in single run only.
• Non-linear data structures are not easy to implement in comparison to linear data
structure.
• It utilizes computer memory efficiently in comparison to a linear data structure. Its
examples are trees and graphs
1010 45 n
Address V alue Name
• 5
1.strlen("name of string")
2. strcpy( dest, source)
3. strcmp( string1, string2 )
• Return value
This returns a pointer to the destination string dest.