7 AnswersNew Answer
vashishtha but in book non primitive data structure are array lists and file and types of lists are linear and non linear
Just caution here. In books normally autors have differents point of view. And if you not, check data release of the book. The information can be outdated. Finally check if you understand the key concepts. This is importante because you can verify for yourself which interpretation fits your understanding. But I'm curious. Which book and edition are you using?
Kind of both. In Non Primitive types you have a division: - Linear - Non Linear You can see better here: https://www.tutorialride.com/data-structures/data-structure-tutorial.htm
books written by author & different author have different opinions.... so logically array is linear so we can conclude array in linear data structures... if you compare list & array...so it is vary in different languages.... I forgot to written file...it is neither linear nor non linear.. if had any query please comment....
Ok so just understand this data structures have two types: >primitive data structures >non primitive data structures >primitive includes : int,float,char >non primitive includes : LINEAR AND NON LINEAR data structures >linear includes: array,list,stack, queues >non linear includes graph and link list
thanks for answer
Here linear data structure are: arrays, linked lists which forms linearly representation. And non-linear data structures are :trees ,Bst etc which forms hierarchical representation And finally primitive and non-primitive are mostly found on programming languages . Primitive data structures are predefined like int,char ,flaot ,boolean etc Non primitive are user defiend data types like structues,class ,arrags etc