typedef struct tree{
datatype data;
int descendands;
struct tree *left, *right;
} tree;
Write a function that traverses the tree and initializes the member descendands when a node is visited. The value of descendands of a node is the number of descendants (children) of that node.