/*max -> macros*/ #define max (a, b) (((a)>(b))? (a): (b)) typedef struct BNode{ int data; BinTree left; BinTree right; }BNode; int TreeSize (BinTree t){ if(t==NULL){ return 0; } return 1 + height(l->left) + height(l->right); } int height (BinTree t){ if(t==NULL){ return 0; } return 1 + max(height(l->left) + height(l->right)); }