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
Why ca not I do something like this?
What is the difference between far and near in c?
find the sum of two matrices and WAP for it.
What does %2f mean in c?
Who developed c language?
What are the standard predefined macros?
What is difference between Structure and Unions?
Is struct oop?
What is structure in c explain with example?
Wt are the Buses in C Language
Explain how can I open a file so that other programs can update it at the same time?
Differentiate between a structure and a union.
Here is a good puzzle: how do you write a program which produces its own source code as output?
What are the modifiers available in c programming language?
What is union and structure in c?