Re: [ILUG] gcc optimisation weirdness?

From: Lars Hecking (lhecking at domain nmrc.ucc.ie)
Date: Wed 10 May 2000 - 21:13:00 IST


Shane Dempsey writes:
> Hi guys,
> Interesting discussion. The statement
> int i[10] = {1};
>
> should initialise the array to
> { 1 , 0 , 0 , 0 , ... , 0 }
> I am pretty sure that this is defined in the ANSI standard for C.
> I could be wrong though. The only compiler that I have to test
> it on here is VC++ and that seems to work ( just about )

 I have no copy of The Standard to prove it, but you are correct
 according K&R2 :)



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:06 GMT