Binary Trees in C
    USENET News 
    news at awdprime.UUCP
       
    Fri Mar 23 11:58:57 AEST 1990
    
    
  
In article <25fff2a9.36f0 at polyslo.CalPoly.EDU> apippin at polyslo.CalPoly.EDU (Pinhead at Spikes) writes:
-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;
-	}
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!)
    
    
More information about the Comp.lang.c
mailing list