Answer Posted / qint
void Traverse(Node *t)
{
if(NULL == t)
return;
//in-order traversing
Traverse(t->left);
printf("%d",t->data);
Traverse(t->right);
//pre-order
printf("%d",t->data);
Traverse(t->left);
Traverse(t->right);
//post order
Traverse(t->left);
Traverse(t->right);
printf("%d",t->data);
}
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What are the various types of control structures in programming?
How to define structures? ·
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is a void * in c?
What does stand for?
What is indirection in c?
What does the error message "DGROUP exceeds 64K" mean?
How many types of sorting are there in c?
What is d'n in c?
What is the difference between struct and union in C?
What does 3 periods mean in texting?
What are the benefits of c language?
Why is c called "mother" language?
In a switch statement, explain what will happen if a break statement is omitted?
What are the differences between new and malloc in C?