Array Initialization warnings

David Stroupe dstroupe@keyed-upsoftware.com
Sat Apr 20 08:37:00 GMT 2002


  Hi guys,

Michal Liptak wrote:
 >
 > I think the internal representation of int[4][4] is the same as int[16]
 > m.
 >

That is usually the case, i would think, but i am not sure, it
is required by the standard, so i would not rely on that.

Just to clarify...the standard requires the brackets be placed as in 
your example? If so, guess I had best get to bracketing my arrays.

I really did not want to have to go back and recode my array that looks 
like this:
BYTE SUBIMG_NTSC[2][2][4][3][8] = {...

Thanks to all for the info!!





More information about the Gcc-help mailing list