Professional Documents
Culture Documents
C Code For N Ary Tree
C Code For N Ary Tree
and values of each node. * User has to enter data using keyboard. * N-ary tree will
be created based on data given by user. 2)Conditions considering while tree
creation: * All child values will be less than parent value. * All sibling values
will be greater than previous siblings. * As Root node is parent of all nodes it
will have maximum value. 3)N-ary tree structure: * each node will have info
regarding first child and next sibling. * Root can't have siblings. * user can
enter as many nodes as he want. * Any node can have any number of childs or
siblings( Root can have only childs) 4)Output: * User can see created tree
information imediately or can save it in fil e. * user can get tree stucture in 3
formats: Inorder,Preorder,Postorder. * User can give ouput file name while saving
output in file. */