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 |
Explain what does it mean when a pointer is used in an if statement?
please explain every phase in the "SDLC" in the dotnet.
Why double pointer is used in c?
Why is it important to memset a variable, immediately after allocating memory to it ?
What is the use of keyword VOLATILE in C?
What is anagram in c?
How can you print HELLO WORLD without using "semicolon"?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
dennis ritchie invented C language in AT&T bell laboratory what is the extension of AT&T?
let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Are the expressions * ptr ++ and ++ * ptr same?