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
How can I dynamically allocate arrays?
Why functions are used in c?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is the difference between local variable and global variable in c?
How does selection sort work in c?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What is the deal on sprintf_s return value?
Explain what math functions are available for integers? For floating point?
Is c compiled or interpreted?
What is a pragma?
write a progrmm in c language take user interface generate table using for loop?
What are the salient features of c languages?
Why is c so important?
What is a function in c?
What does 2n 4c mean?