fix some bugs in c codes (#1089)

This commit is contained in:
Arthur
2024-02-23 01:34:49 +08:00
committed by GitHub
parent 799da32eb0
commit 962f8f91f7
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ void testTreeNode() {
printTree(root);
// tree to arr
int *arr = treeToArray(root, size);
int *arr = treeToArray(root, &size);
printArray(arr, size);
}