Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Binary tree traversing



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

Post New Answer

More C Interview Questions

difference between spiral and waterfall model

1 Answers  


What is console in c language?

0 Answers  


List out few of the applications that make use of Multilinked Structures?

1 Answers   Accenture,


What is the use of putchar function?

0 Answers  


What is an identifier?

0 Answers  


What are control structures? What are the different types?

0 Answers  


What are structural members?

0 Answers  


Subtract Two Number Without Using Subtraction Operator

0 Answers  


What is function prototype in c language?

0 Answers  


what is the maximum limit of row and column of a matrix in c programming. in linux .

4 Answers   NIIT,


What is a floating point in c?

0 Answers  


write a program to swap two numbers without using temporary variable?

3 Answers  


Categories