Question: 01.2 (13 marks) Consider the following program: #include #include #include typedef struct family char name: int age: struct family younger: struct family older FAMILY: void

 01.2 (13 marks) Consider the following program: #include #include #include typedef
struct family char name: int age: struct family younger: struct family "older

01.2 (13 marks) Consider the following program: #include #include #include typedef struct family char name: int age: struct family younger: struct family "older FAMILY: void insert_ node (FAMILY temp_ age) myptr, char temp_ name, int void inorder (FAMILY myptr) if (myptr -NULL) inorder (myptr->older): printfedmyptr //printf(" * %d * "myptr->age); r-name, myptr->age); inorder (myptr->younger) int main int check-1; char temp name [100]: int temp_ age FAMILY "ptr-NULL printf ("Creating family tree...In") printf(".**In) while (check) t printf("Please insert name: "): scanf ("%s", tempname) ; printf("Please insert age:") scanf ("id", &temp_age) : - insert_node (&ptr, temp_name, temp_age) : printf ("Any more family members? Y/N (1/0):) scanf ("%d", &check) ; inorder (ptr): return 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!