How would you print out the data in a binary tree, level by
level, starting at the top?
Answer Posted / sridhar
By using inorder,preorder,postorder.the data may print as
LDR,DLR,LRD.this only the chance to print data in a bionary
tree.
| Is This Answer Correct ? | 4 Yes | 14 No |
Post New Answer View All Answers
Explain b+ tree?
What is the difference between struct and union in C?
Can we use any name in place of argv and argc as command line arguments?
What is graph in c?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is the sizeof () a pointer?
Differentiate between static and dynamic modeling.
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is a const pointer?
What is typedef struct in c?
What is FIFO?
How do we print only part of a string in c?
How do you declare a variable that will hold string values?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is variable initialization and why is it important?