🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5561

scope of a structure tag

#5561
From: holub
Date: Fri, 06 Jan 1989 22:53
21 lines
769 bytes
I'm confused about the scope of a structure tag. Is the following legal
in ANSI C:

	struct tag1
	{
		struct tag2
		{
			int a, b;	
		} x;
	}

	struct tag3
	{
		struct tag2 y;
	}

or does the inner structure have to be redefined in tag3?

	- Allen Holub
	 holub@violet.berkeley.edu
	 ...!ucbvax!violet!holub
Technical Details
Message-ID: <18799@agate.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!agate!violet.berkeley.edu!holub

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!agate!violet.berkeley.edu!holub
From: holub@violet.berkeley.edu
Newsgroups: comp.std.c
Subject: scope of a structure tag
Keywords: structure tag scope
Message-ID: <18799@agate.BERKELEY.EDU>
Date: 6 Jan 89 22:53:16 GMT
Sender: usenet@agate.BERKELEY.EDU
Reply-To: holub@violet.berkeley.edu ()
Organization: University of California, Berkeley
Lines: 21