{ initializer-list , }

Bob Larson blarson at skat.usc.edu
Mon Mar 14 14:33:42 AEST 1988


It is VERY useful.  Try the following without it:
(Case D, E, and F may be added later.)

/* one or more of A, B and C are defined */
char *foo[] = {	/* must be alphabetical */
#ifdef A
	"a",
#endif
#ifdef B
	"b",
#endif
#ifdef C
	"c",
#endif
};
Bob Larson	Arpa: Blarson at Ecla.Usc.Edu	blarson at skat.usc.edu
Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson
Prime mailing list:	info-prime-request%fns1 at ecla.usc.edu
			oberon!fns1!info-prime-request



More information about the Comp.lang.c mailing list