How to build a generic tree,because number of child can be anything?

how to build a generic tree,because number of child can be anything?

for generic tree
u have to take a array of pointer
just in binary tree u take left and right and for generic u need int *array[]
and then take input using a loop for a node

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.