Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!romp!auschs!awdprime!news From: news@awdprime.UUCP (USENET News) Newsgroups: comp.lang.c Subject: Re: Binary Trees in C Summary: I didn't do it. Keywords: Binary Tree Message-ID: <1886@awdprime.UUCP> Date: 23 Mar 90 01:58:57 GMT References: <21744@netnews.upenn.edu> <25fff2a9.36f0@polyslo.CalPoly.EDU> Reply-To: cs.utexas.edu!ibmaus!auschs!sanders!sanders (Tony Sanders) Distribution: usa Organization: contract to IBM AWD, Austin, TX Lines: 22 In article <25fff2a9.36f0@polyslo.CalPoly.EDU> apippin@polyslo.CalPoly.EDU (Pinhead@Spikes) writes: -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; - } Lest we confuse the masses, I think that should have read: typedef struct _node *nodeptr; ^ | NOTE THE *. We thank you for your support, -- sanders For every message of the day, a new improved message will arise to overcome it. Reply-To: cs.utexas.edu!ibmaus!auschs!sanders.austin.ibm.com!sanders (ugh!)