On Thursday 19 April 2007 23:34, Alexandre Julliard wrote:
James Liggett jrliggett@cox.net writes:
Actually I think in this case they would be. Most compilers do this by default IIRC (if you'd like to see for yourself, try the attached test.) Still, I think it would be prudent to put the 0 in there anyway, sine I don't think there's a standard that says compilers have to do this so there could potentially be portability problems.
There are no potential problems at all, statics are _always_ initialized to 0 in C.
And another new thing learned about C. Thanks for the explanations.
Kai