Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site rabbit.UUCP Path: utzoo!linus!decvax!harpo!eagle!allegra!alice!rabbit!mjs From: mjs@rabbit.UUCP (M. J. Shannon, Jr.) Newsgroups: net.lang.c Subject: Re: Why can't I do this? Message-ID: <2386@rabbit.UUCP> Date: Fri, 13-Jan-84 09:42:14 EST Article-I.D.: rabbit.2386 Posted: Fri Jan 13 09:42:14 1984 Date-Received: Sat, 14-Jan-84 03:31:24 EST References: <152@vaxine.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 16 WHat you probably want to say is: static int int_array[][] = { { 0, 1, 2, 3, /* padded to longest */ }, { 17, 42 }, { 11, 15, 57 }, }; What is meant by what you said is: initialize an array of pointers. You can't initialize a pointer with an aggregate. The reason it works for strings is that the type of "foo" is `char *'. There is no way of using the same sort of syntax to do the same for int arrays. -- Marty Shannon UUCP: {alice,rabbit,research}!mjs Phone: 201-582-3199