Skip to content

Making a function that draws binary tree on to the console.

Notifications You must be signed in to change notification settings

dingusagar/Draw-Binary-Tree-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Draw-Binary-Tree-

Making a function that draws binary tree on to the console.

The header file assumes your node in the tree is defined as follows:

struct node
{
	int data;
	struct node *left;
	struct node *right;

}*root=NULL;

NOTE: The displayTree.h header file already contains this structure definition so you don't need to make it again in your main program.

If you want the structure definition in the main program itself, comment out the defintion in the displayTree.h


This is how the tree looks like

About

Making a function that draws binary tree on to the console.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages