Path: utzoo!attcan!uunet!lll-winken!xanth!nic.MR.NET!umn-cs!clark From: clark@umn-cs.CS.UMN.EDU (Robert P. Clark) Newsgroups: comp.lang.c Subject: array declaration Message-ID: <12724@umn-cs.CS.UMN.EDU> Date: 10 May 89 13:44:53 GMT Organization: University of Minnesota, Minneapolis Lines: 35 There is lots of talk about why int a[][] = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 }, }; won't compile. My compiler barfs at this too. But if you change the declaration to static int a[][] = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 }, }; it compiles fine. This is what I do to get around the problem, but I'm not exactly sure why this works and the first doesn't. Can anyone shed some light on this? Bob Clark clark@umn-cs.cs.umn.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~ ~ Never underestimate the bandwidth of ~ ~ a station wagon - Andrew Tannenbaum ~ ~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~