Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.lang.c Subject: Re: Arrays of Unknown Length in Structures (and sizeof) Message-ID: <6485@brl-smoke.ARPA> Date: Mon, 28-Sep-87 15:07:25 EDT Article-I.D.: brl-smok.6485 Posted: Mon Sep 28 15:07:25 1987 Date-Received: Tue, 29-Sep-87 04:48:49 EDT References: <243@mit-prep.ARPA> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <243@mit-prep.ARPA> jym@mit-prep.ARPA (Jym Dyer) writes: > struct STRUCT_FOO > { ... > int open[]; > }; ... > printf("Size = %d\n",sizeof (struct STRUCT_FOO)); ... >As far as I'm concerned, if this isn't kosher, it should be! How can it possibly be? Just out of curiosity, what do you think the printf() should print??