You are on page 1of 2

IT 126

2-3 Tree

Tropico, Rey
BSIT-4
1. Structure Definition

typedef enum{INODE,LEAF}boolean;

typedef struct{
unsigned long ID;
char LN[20],FN[20],MI;
char course[10];
int year;
}StudRec;

typedef struct tree{


boolean indicator;
union{
StudRec Leaf;
struct{
unsigned long key[2];
struct tree *ptr[3];
}inode;
}u;
}*TTT;

2. Drawing
TTT

You might also like