Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!erlkonig From: erlkonig@walt.cc.utexas.edu (Christopher North-Keys) Newsgroups: comp.lang.c Subject: Re: Binary Trees in C Keywords: Binary Tree Message-ID: <27102@ut-emx.UUCP> Date: 29 Mar 90 04:16:58 GMT References: <21744@netnews.upenn.edu> <25fff2a9.36f0@polyslo.CalPoly.EDU> <1886@awdprime.UUCP> Sender: news@ut-emx.UUCP Reply-To: erlkonig@walt.cc.utexas.edu (Christopher North-Keys) Distribution: usa Organization: Packaging/Interconnect, M.C.C. Lines: 26 (line "#" is corrected as per the first followup) -Add then rmandel@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)----------------------------------