Binary tree traversing
Answer / 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 |
difference between spiral and waterfall model
What is console in c language?
List out few of the applications that make use of Multilinked Structures?
What is the use of putchar function?
What is an identifier?
What are control structures? What are the different types?
What are structural members?
Subtract Two Number Without Using Subtraction Operator
What is function prototype in c language?
what is the maximum limit of row and column of a matrix in c programming. in linux .
What is a floating point in c?
write a program to swap two numbers without using temporary variable?