Binary Trees in C

Pinhead@Spikes apippin at polyslo.CalPoly.EDU
Fri Mar 16 05:53:13 AEST 1990


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;
	}

	This works on a Sun 3, Pyramid and Macintoys.

    aBp.

-- 
Andy Pippin  -*-  apippin at polyslo.CalPoly.EDU  -*-  Conserve water, drink bier.



More information about the Comp.lang.c mailing list