yeah sorry about not including the main function.
but i want to know, can we have a stsuct within a struct and how would u implement it
eg if we use the above code
i can add and print from the following structure
struct ingredient {
char *name;
int quantity;
enum quantity_type type;
Ingredient *left;
Ingredient *right;
Now i want to make a stucture called Recipe
Srtuct recipe {
char* recipename;
//i need to include the struct for ingredients here;
recipe *left;
recipe *right;
any body know how i can do this
thank in advance