Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ucla-cs!sdcrdcf!burdvax!ray From: ray@burdvax.UUCP Newsgroups: comp.lang.c Subject: union initialization Message-ID: <3290@burdvax.PRC.Unisys.COM> Date: Tue, 21-Apr-87 14:29:56 EST Article-I.D.: burdvax.3290 Posted: Tue Apr 21 14:29:56 1987 Date-Received: Fri, 24-Apr-87 00:58:48 EST Sender: news@burdvax.PRC.Unisys.COM Organization: Unisys/Paoli Research Center, Paoli, PA Lines: 21 Is it possible to initialize structures containing unions? I have declared some structures which contain unions, i.e. struct xxx { ... union yyy { char a; int b; } c; }; Then I define some variables of this structure type and want to give them intial values. Is there a way to give an initial value in the variable definition? ------------- Ray ray@burdvax.PRC.Unisys.COM ...!burdvax!ray