initialization of automatic structures/unions

Filisa Vistima filisa at albert.ai.mit.edu
Thu Feb 28 08:49:23 AEST 1991


If such a construct such as this is illegal (says my compiler):

	struct Stuff { int i, j, k, l; };

	int main(argc, char ** argv)  {
		struct Stuff stuffy = { 0, 0, 0, 0 };  /* illegal part */
	}

Can someone give me a good reason why initializing automatic
structures/unions is illegal?

Thanks.

filisa



More information about the Comp.lang.c mailing list