Binary Trees in C
Christopher North-Keys
erlkonig at walt.cc.utexas.edu
Thu Mar 29 14:16:58 AEST 1990
(line "#" is corrected as per the first followup)
-Add then rmandel at grad1.cis.upenn.edu () babbles...
->How do you declare a linked list or binary tree type?
-Try:
-
# typedef struct _node *nodeptr;
- struct _node {
- int i;
- nodeptr right;
- nodeptr left;
- }
Try:
typedef struct _node {
int i;
struct _node *left;
struct _node *right;
} *nodeptr;
------------------------------------/\----------------------------------------
Seo: Harp[@Mcc.Com] / \/\ ^*^ Christopher North-Keys
Tha mi gu trang a'cluich. / \ \ Assoc. Systems Analyst, MCC
--------------------------------(disclaimer)----------------------------------
More information about the Comp.lang.c
mailing list