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
Is Exception handling possible in c language?
Why we use conio h in c?
What are the functions to open and close file in c language?
What does dm mean sexually?
What are run-time errors?
what do u mean by Direct access files? then can u explain about Direct Access Files?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is pragma c?
What is a structure in c language. how to initialise a structure in c?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What are the back slash character constants or escape sequence charactersavailable in c?
List the variables are used for writing doubly linked list program.
How many types of sorting are there in c?
What is the difference between array and pointer?
What is array of pointers to string?