This is my code is it correct?:
THX!
Code:
int CountLeaves(Tree *root){ if (root == NULL) return 0; else if (root -> left == NULL && root -> right == NULL) return 1; else{ CountLeaves(root -> left); CountLeaves(root -> right); } }
Comment