Global (or, more generally, static) objects of type int are always initialized to zero. What did you expect?
Last edited on
Turbo C++ and Borland are excessively outdated compilers. Avoid using them at all costs unless some outdated professor with tenure threatens your college career.
thanks for the answer . i have to use them cuz of school