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 types of preprocessor in c?
How are structure passing and returning implemented?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is a shell structure examples?
How many types of errors are there in c language? Explain
Write a factorial program using C.
What is a good way to implement complex numbers in c?
Differentiate fundamental data types and derived data types in C.
Tell me what is the purpose of 'register' keyword in c language?
What is a program flowchart and explain how does it help in writing a program?
Explain what is #line used for?
How can I do graphics in c?
What is the best way to store flag values in a program?
How to draw the flowchart for structure programs?
What is bss in c?