[ros-dev] Uninitialized static variable in function
Javier Agustìn Fernàndez Arroyo
elhoir at gmail.com
Sun Mar 20 14:45:53 UTC 2011
....so, depends on compiler
2011/3/20 Alexander Potashev <aspotashev at gmail.com>
> 2011/3/20 Javier Agustìn Fernàndez Arroyo <elhoir at gmail.com>:
> > teachers at college told us it is a must to initialize variables.....
>
> When I was in high school, our teacher told me that a simple "int
> a[5];" (without "= {0};") would initialize the array with zeroes. But
> it didn't. At least, in old good Borland C/C++ 3.1.
>
>
> --
> Alexander Potashev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20110320/2495d68b/attachment.htm>
More information about the Ros-dev
mailing list