typedef struct node { int data; struct node * firstchild, *rightsibling, *parents; }node, *pnode; pnode root;