Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!iuvax!watmath!watcgl!awehrmann From: awehrmann@watcgl.waterloo.edu (August Wehrmann) Newsgroups: comp.lang.c Subject: Using data types before they are declared. Message-ID: <10268@watcgl.waterloo.edu> Date: 12 Jun 89 18:27:10 GMT Reply-To: awehrmann@watcgl.waterloo.edu (August Wehrmann) Organization: U. of Waterloo, Ontario Lines: 28 I have a question: Is it possible, (and if so, how?), to use a data type in a declaration of say, a union, that has not yet been declared? Here is an example of what I'm talking about. union Fred { <-------- int Number; | element Node; <........... }; | . | . typedef struct { | . int Info; | . Fred Name; <-------- . } *element; <........... Please e-mail any replies. Quick references to Kernighan and Ritchie would also be appreciated. Thanks in advance. -- =============================================================================== August Wehrmann, awehrmann@watcgl{.waterloo.edu, UWaterloo.ca} Computer Graphics Lab, Department of Computer Science, University of Waterloo ===============================================================================