#define LEFT 1
#define BAL 0
#define RIGHT -1
typedef struct avl {
int value;
int bal;
struct avl *left, *right;
} *AVL;
AVL lower (AVL a){
while ((a.left != NULL) || (a.right != NULL)) {
if (a.bal = LEFT){
AVL lower (a.left);
} else AVL lower (a.right);
}
return (a);
}
In this code, I have a problem accessing the struct
inside my struct
.
What should I write in this code where I have a.left
, a.right
? Thank you all.