Subj : Re: Win98 error To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Sat Mar 13 2004 02:20 am Wayne A. King wrote: >On Thu, 11 Mar 2004 18:20:09 -0800, Bob Gonder >wrote: > >>> {Stats.ExpRate+=P[i]*R[i]; } >> >>You never initialize stats. It's value is unknown. > >It's a global variable (file scope). They're default initialized to zero. It's an unitialized (global) variable, and should be in the udataseg. I always understood that uninitialized memory was, well, not initialized (except when running in the debugger which initializes the area to make debugging easier). In any case, I've never relied on unititialized variables being initialized. .