Initializacia

This commit is contained in:
Kozar 2024-11-10 14:49:17 +00:00
parent 5f49f0f967
commit ed485b28e3

View File

@ -56,7 +56,7 @@ void destroy_tree(struct tree* tree){
void count_items(struct tree* tree, int* count){
if(tree->left == NULL && tree->right == NULL){
(*count)++
(*count)++;
}else{
count_items(tree->left, count);
count_items(tree->right, count);