Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #36.9K
Hello.Got a problem with a binary tree again,i have made a visual printing but the problem is that it prints only completed tree,so if it is not full it crashes,is there a posibillity to add some extra print to value NULL,so after one right or left leave won't have value(NULL) … |
|
I have problem with printing the binary tree.After i put the numbers it is just closing.Can't find the problem,somehow it ignores the function called "printukas". [CODE]#include <stdio.h> #include <stdlib.h> struct tree { int data; struct tree *rajt; struct tree *left; }; typedef struct tree node; int main() { init(); } … |