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 |
WRITE A PROGRAM TO FIND A REVERSE OF TWO NO
Why we write conio h in c?
Who invented bcpl language?
Difference between data structure and data base.
7 Answers CTS, Value Labs, Zoho,
What is the main differences between C and Embedded C?
How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets
Write a program to print ASCII code for a given digit.
What is the difference between typedef and #define?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
int *a[5] refers to
what is c
What is a void pointer in c?